@luxonis/visualizer-protobuf 3.0.1-rc.8 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/dist/{FoxgloveServer-B98MHUu6.js → FoxgloveServer-CzGfv6A4.js} +1 -1
  2. package/dist/{WorkerImageDecoder.worker-Db4_QpUB.js → WorkerImageDecoder.worker-BlZI81p6.js} +8 -5
  3. package/dist/{comlink-wXOdMqIH.js → comlink-jf8bdrAf.js} +1 -1
  4. package/dist/{communicator-D1clAtYY.js → communicator-Bry8Rhl_.js} +5 -2
  5. package/dist/{depth-CkdNsD0V.js → depth-Be6jMsNV.js} +26 -59
  6. package/dist/{depth-coloring.worker-CAXQfIhb.js → depth-coloring.worker-DUhuvX3L.js} +1 -1
  7. package/dist/{deserialization.worker-Dk0EAxcN.js → deserialization.worker-BRFVmAW6.js} +134 -39
  8. package/dist/{foxglove-protocol-yHdoBNaD.js → foxglove-protocol-BvaCHfze.js} +1 -1
  9. package/dist/{index-BKhOob8J.js → index-6BlZXZuC.js} +7 -6
  10. package/dist/{index--7zF5j2F.js → index-7ZRO7erP.js} +7 -6
  11. package/dist/{index-BKvr2diy.js → index-B1qvG-qo.js} +7 -6
  12. package/dist/{index-6y4BHaTv.js → index-B6jTuetX.js} +7 -6
  13. package/dist/{index-165NQw4s.js → index-BAyXlO8J.js} +7 -6
  14. package/dist/{index-Dqm1x8G2.js → index-BLi9zAwC.js} +1 -1
  15. package/dist/{index-Cd2_mC61.js → index-BlYRUX1p.js} +7 -6
  16. package/dist/{index-BivmOUGy.js → index-CUOzEGiw.js} +298 -39
  17. package/dist/{index-BfR1RnVM.js → index-CbPp1IVO.js} +7 -6
  18. package/dist/{index-RMfbXPEI.js → index-CchVwbzA.js} +7 -6
  19. package/dist/{index-BMQAXq3K.js → index-CnfGAo2c.js} +7 -6
  20. package/dist/{index-CJzVlQUM.js → index-Czx66qud.js} +7 -6
  21. package/dist/{index-CNxUodri.js → index-D-yirRS0.js} +7 -6
  22. package/dist/{index-BnFtyl1Q.js → index-D4JcPcem.js} +7 -6
  23. package/dist/{index-DobeFhJx.js → index-D61TcvW7.js} +7 -6
  24. package/dist/{index-Zif42mqA.js → index-DNSv_gUV.js} +9 -8
  25. package/dist/{index-DJ8wqRwk.js → index-DSRKZJLN.js} +7 -6
  26. package/dist/{index-CPFkLEs7.js → index-DziMrclw.js} +7 -6
  27. package/dist/{index-BZWz9-n6.js → index-T8Clygdf.js} +7 -6
  28. package/dist/{index-BQjMARFl.js → index-g-SFBx17.js} +7 -6
  29. package/dist/{index-D07SrTQe.js → index-pQMSWqkM.js} +5789 -6331
  30. package/dist/index.js +8 -7
  31. package/dist/lib/src/connection/adapter.d.ts.map +1 -1
  32. package/dist/lib/src/connection/adapter.js +26 -9
  33. package/dist/lib/src/connection/adapter.js.map +1 -1
  34. package/dist/lib/src/connection/communicator.d.ts.map +1 -1
  35. package/dist/lib/src/connection/communicator.js +3 -1
  36. package/dist/lib/src/connection/communicator.js.map +1 -1
  37. package/dist/lib/src/connection/connection.d.ts.map +1 -1
  38. package/dist/lib/src/connection/connection.js +44 -5
  39. package/dist/lib/src/connection/connection.js.map +1 -1
  40. package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
  41. package/dist/lib/src/connection/foxglove-connection.js +5 -3
  42. package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
  43. package/dist/lib/src/connection/webrtc/bridge.d.ts.map +1 -1
  44. package/dist/lib/src/connection/webrtc/bridge.js +31 -7
  45. package/dist/lib/src/connection/webrtc/bridge.js.map +1 -1
  46. package/dist/lib/src/connection/webrtc/comms-proxy.d.ts +1 -2
  47. package/dist/lib/src/connection/webrtc/comms-proxy.d.ts.map +1 -1
  48. package/dist/lib/src/connection/webrtc/comms-proxy.js +31 -16
  49. package/dist/lib/src/connection/webrtc/comms-proxy.js.map +1 -1
  50. package/dist/lib/src/connection/ws/worker.d.ts.map +1 -1
  51. package/dist/lib/src/connection/ws/worker.js +15 -1
  52. package/dist/lib/src/connection/ws/worker.js.map +1 -1
  53. package/dist/lib/src/context/MessagePipelineProvider.d.ts.map +1 -1
  54. package/dist/lib/src/context/MessagePipelineProvider.js +3 -1
  55. package/dist/lib/src/context/MessagePipelineProvider.js.map +1 -1
  56. package/dist/lib/src/messaging/deserialization/detections/custom.d.ts.map +1 -1
  57. package/dist/lib/src/messaging/deserialization/detections/custom.js +6 -5
  58. package/dist/lib/src/messaging/deserialization/detections/custom.js.map +1 -1
  59. package/dist/lib/src/messaging/deserialization/detections/detection.d.ts.map +1 -1
  60. package/dist/lib/src/messaging/deserialization/detections/detection.js +61 -20
  61. package/dist/lib/src/messaging/deserialization/detections/detection.js.map +1 -1
  62. package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js +12 -10
  63. package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js.map +1 -1
  64. package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.d.ts +8 -5
  65. package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.d.ts.map +1 -1
  66. package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.js +27 -22
  67. package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.js.map +1 -1
  68. package/dist/lib/src/messaging/deserialization/video/color.d.ts.map +1 -1
  69. package/dist/lib/src/messaging/deserialization/video/color.js +2 -1
  70. package/dist/lib/src/messaging/deserialization/video/color.js.map +1 -1
  71. package/dist/lib/src/messaging/deserialization/video/depth.d.ts.map +1 -1
  72. package/dist/lib/src/messaging/deserialization/video/depth.js +6 -3
  73. package/dist/lib/src/messaging/deserialization/video/depth.js.map +1 -1
  74. package/dist/lib/src/messaging/deserialization/video/h264.d.ts +2 -1
  75. package/dist/lib/src/messaging/deserialization/video/h264.d.ts.map +1 -1
  76. package/dist/lib/src/messaging/deserialization/video/h264.js +12 -5
  77. package/dist/lib/src/messaging/deserialization/video/h264.js.map +1 -1
  78. package/dist/lib/src/messaging/deserialization/video/h265.d.ts +2 -1
  79. package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
  80. package/dist/lib/src/messaging/deserialization/video/h265.js +10 -3
  81. package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
  82. package/dist/lib/src/messaging/deserialization/video/mjpeg.d.ts.map +1 -1
  83. package/dist/lib/src/messaging/deserialization/video/mjpeg.js +2 -1
  84. package/dist/lib/src/messaging/deserialization/video/mjpeg.js.map +1 -1
  85. package/dist/lib/src/messaging/deserialization.worker.d.ts.map +1 -1
  86. package/dist/lib/src/messaging/deserialization.worker.js +6 -4
  87. package/dist/lib/src/messaging/deserialization.worker.js.map +1 -1
  88. package/dist/lib/src/messaging/message-handler.d.ts +1 -0
  89. package/dist/lib/src/messaging/message-handler.d.ts.map +1 -1
  90. package/dist/lib/src/messaging/message-handler.js +18 -9
  91. package/dist/lib/src/messaging/message-handler.js.map +1 -1
  92. package/dist/lib/src/output.css +7 -1
  93. package/dist/lib/src/protobuf.generated/RGBDData.d.ts +36 -0
  94. package/dist/lib/src/protobuf.generated/RGBDData.d.ts.map +1 -0
  95. package/dist/lib/src/protobuf.generated/RGBDData.js +187 -0
  96. package/dist/lib/src/protobuf.generated/RGBDData.js.map +1 -0
  97. package/dist/lib/src/protobuf.generated/SegmentationMask.d.ts +35 -0
  98. package/dist/lib/src/protobuf.generated/SegmentationMask.d.ts.map +1 -0
  99. package/dist/lib/src/protobuf.generated/SegmentationMask.js +220 -0
  100. package/dist/lib/src/protobuf.generated/SegmentationMask.js.map +1 -0
  101. package/dist/lib/src/utils/artificial-worker.d.ts +1 -0
  102. package/dist/lib/src/utils/artificial-worker.d.ts.map +1 -1
  103. package/dist/lib/src/utils/artificial-worker.js +4 -0
  104. package/dist/lib/src/utils/artificial-worker.js.map +1 -1
  105. package/dist/lib/src/utils/compatibility.d.ts.map +1 -1
  106. package/dist/lib/src/utils/compatibility.js +3 -1
  107. package/dist/lib/src/utils/compatibility.js.map +1 -1
  108. package/dist/lib/src/utils/frame-store.d.ts.map +1 -1
  109. package/dist/lib/src/utils/frame-store.js +3 -1
  110. package/dist/lib/src/utils/frame-store.js.map +1 -1
  111. package/dist/lib/src/utils/logger.d.ts +16 -0
  112. package/dist/lib/src/utils/logger.d.ts.map +1 -0
  113. package/dist/lib/src/utils/logger.js +59 -0
  114. package/dist/lib/src/utils/logger.js.map +1 -0
  115. package/dist/logger-CgxnhrWP.js +196 -0
  116. package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.d.ts.map +1 -1
  117. package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.js +1 -2
  118. package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.js.map +1 -1
  119. package/dist/packages/studio-base/src/components/Panel.d.ts.map +1 -1
  120. package/dist/packages/studio-base/src/components/Panel.js +1 -1
  121. package/dist/packages/studio-base/src/components/Panel.js.map +1 -1
  122. package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.d.ts.map +1 -1
  123. package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.js +0 -1
  124. package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.js.map +1 -1
  125. package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts.map +1 -1
  126. package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js +0 -1
  127. package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js.map +1 -1
  128. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.d.ts.map +1 -1
  129. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js +9 -1
  130. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js.map +1 -1
  131. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandlerV2.d.ts.map +1 -1
  132. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandlerV2.js +9 -1
  133. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandlerV2.js.map +1 -1
  134. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/depthaiTransform.d.ts +18 -0
  135. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/depthaiTransform.d.ts.map +1 -0
  136. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/depthaiTransform.js +170 -0
  137. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/depthaiTransform.js.map +1 -0
  138. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.d.ts.map +1 -1
  139. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.js +32 -3
  140. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.js.map +1 -1
  141. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.d.ts.map +1 -1
  142. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.js +49 -14
  143. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.js.map +1 -1
  144. package/dist/{pointcloudFromDepth.worker-C1fqIMlp.js → pointcloudFromDepth.worker-BcnsKUSs.js} +13 -11
  145. package/dist/{protobuf-Be0G3NFz.js → protobuf-fLt-ppqN.js} +2 -125
  146. package/dist/{worker-B6paT-I9.js → worker-BGG-ZdUp.js} +28 -4
  147. package/dist/{worker-BdmIK_Az.js → worker-DR9o4zBS.js} +5 -4
  148. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { g as getDefaultExportFromCjs } from './protobuf-Be0G3NFz.js';
2
+ import { g as getDefaultExportFromCjs } from './protobuf-fLt-ppqN.js';
3
3
  import require$$0 from 'ms';
4
4
 
5
5
  var eventemitter3 = {exports: {}};
@@ -8,11 +8,12 @@ import './isArrayLikeObject-n9ytTioB.js';
8
8
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
9
9
 
10
10
  self.onmessage = async event => {
11
+ const {
12
+ id,
13
+ image,
14
+ options
15
+ } = event.data;
11
16
  try {
12
- const {
13
- image,
14
- options
15
- } = event.data;
16
17
  const buffer = new Uint8ClampedArray(image.width * image.height * 4);
17
18
 
18
19
  // Decode image into the provided buffer
@@ -21,12 +22,14 @@ self.onmessage = async event => {
21
22
  // Clear image data for earlier Garbage Collection
22
23
  image.data.fill(0);
23
24
 
24
- // Transfer the buffer back
25
+ // Transfer the buffer back with the message ID
25
26
  self.postMessage({
27
+ id,
26
28
  result: buffer
27
29
  }, [buffer.buffer]);
28
30
  } catch (error) {
29
31
  self.postMessage({
32
+ id,
30
33
  error: error instanceof Error ? error.message : "Unknown error occurred"
31
34
  });
32
35
  }
@@ -342,4 +342,4 @@ function requestResponseMessage(ep, pendingListeners, msg, transfers) {
342
342
  });
343
343
  }
344
344
 
345
- export { expose as e, proxy as p, transfer as t, wrap as w };
345
+ export { expose as e, proxy as p, releaseProxy as r, transfer as t, wrap as w };
@@ -1,7 +1,10 @@
1
1
  'use client';
2
- import { _ as _classPrivateFieldLooseBase, p as protobufsBySchema, b as _objectSpread2, a as _classPrivateFieldLooseKey } from './protobuf-Be0G3NFz.js';
2
+ import { L as Logger, _ as _classPrivateFieldLooseBase, b as _objectSpread2, a as _classPrivateFieldLooseKey } from './logger-CgxnhrWP.js';
3
+ import { p as protobufsBySchema } from './protobuf-fLt-ppqN.js';
3
4
  import { r as recordToDataView } from './encoding-jXImCIb4.js';
4
5
 
6
+ const logger = Logger.getLogger();
7
+
5
8
  // | { type: "custom"; data: any };
6
9
  var _services = /*#__PURE__*/_classPrivateFieldLooseKey("services");
7
10
  var _channels = /*#__PURE__*/_classPrivateFieldLooseKey("channels");
@@ -136,7 +139,7 @@ class FoxgloveCommunicator {
136
139
  data: recordToDataView(body)
137
140
  });
138
141
  } else {
139
- console.warn('Foxglove Communicator Error: requested service call, but connection is not ready');
142
+ logger.warn('Foxglove Communicator Error: requested service call, but connection is not ready');
140
143
  }
141
144
  }
142
145
  }
@@ -1,9 +1,10 @@
1
1
  'use client';
2
- import { w as wrap, t as transfer } from './comlink-wXOdMqIH.js';
3
- import { f as commonjsGlobal, _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, g as getDefaultExportFromCjs, b as _objectSpread2, T as Type } from './protobuf-Be0G3NFz.js';
4
- import { useContext, useRef, useLayoutEffect, createContext, useReducer, useState, useCallback } from 'react';
2
+ import { w as wrap, t as transfer } from './comlink-jf8bdrAf.js';
3
+ import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, b as _objectSpread2, L as Logger$2 } from './logger-CgxnhrWP.js';
4
+ import { useContext, useRef, createContext, useReducer, useLayoutEffect, useState, useCallback } from 'react';
5
5
  import 'zustand';
6
6
  import { isParent, getLeaves, createRemoveUpdate, updateTree, getNodeAtPath } from 'react-mosaic-component';
7
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs, T as Type } from './protobuf-fLt-ppqN.js';
7
8
  import { useTheme } from '@mui/material';
8
9
  import { k as isObjectLike, l as baseGetTag, S as Symbol, i as isArray, m as getNative, r as root, n as overArg, g as isPrototype, c as isArrayLike, p as arrayLikeKeys, M as MapCache, f as isArguments, t as toSource, q as Map$1, u as eq, U as Uint8Array, d as isBuffer, v as Stack, e as isTypedArray, h as isObject, w as isLength, j as isIndex, x as identity, y as baseFor, b as baseRest, a as isArrayLikeObject } from './isArrayLikeObject-n9ytTioB.js';
9
10
 
@@ -546,7 +547,7 @@ var Logger$1 = Logger.default;
546
547
  // License, v2.0. If a copy of the MPL was not distributed with this
547
548
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
548
549
 
549
- const log$5 = Logger$1.getLogger("src/index.ts");
550
+ const log$2 = Logger$1.getLogger("src/index.ts");
550
551
  /**
551
552
  * Values of the contants below are a (more or less) informed guesses and not guaranteed to be accurate.
552
553
  */
@@ -622,7 +623,7 @@ function estimateObjectSize(obj) {
622
623
  throw new Error(`Can't estimate size of type '${typeof obj}'`);
623
624
  }
624
625
  }
625
- log$5.error(`Can't estimate size of type '${typeof obj}'`);
626
+ log$2.error(`Can't estimate size of type '${typeof obj}'`);
626
627
  return SMALL_INTEGER_SIZE;
627
628
  }
628
629
 
@@ -2656,23 +2657,7 @@ function useGuaranteedContext(contextType, debugContextName) {
2656
2657
  // License, v2.0. If a copy of the MPL was not distributed with this
2657
2658
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
2658
2659
 
2659
- const log$4 = Logger$1.getLogger("src/index.ts");
2660
- const useMustNotChangeImpl = value => {
2661
- const valueRef = useRef(value);
2662
- if (valueRef.current !== value) {
2663
- log$4.error("Value must not change", valueRef.current);
2664
- }
2665
- valueRef.current = value;
2666
- };
2667
- const noOpImpl = () => {};
2668
-
2669
- /**
2670
- * useMustNotChange throws if the value provided as the first argument ever changes.
2671
- *
2672
- * Note: In production builds this hook is a no-op.
2673
- *
2674
- */
2675
- const useMustNotChange = process.env.NODE_ENV !== "development" ? noOpImpl : useMustNotChangeImpl;
2660
+ Logger$1.getLogger("src/index.ts");
2676
2661
 
2677
2662
  // This Source Code Form is subject to the terms of the Mozilla Public
2678
2663
  // License, v2.0. If a copy of the MPL was not distributed with this
@@ -2691,29 +2676,8 @@ function useShallowMemo(value) {
2691
2676
  // This Source Code Form is subject to the terms of the Mozilla Public
2692
2677
  // License, v2.0. If a copy of the MPL was not distributed with this
2693
2678
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
2694
- const log$3 = Logger$1.getLogger("src/index.ts");
2695
2679
 
2696
- // useWarnImmediateReRender will warn if the component re-renders before the next animation frame
2697
- // This typically indicates that the component state is changing in rapid succession and more
2698
- // work is being done than necessary.
2699
- //
2700
- // Note: This detects state change triggers in useLayoutEffect. It does not detect state changes from
2701
- // useEffect which run on the next animation frame.
2702
- process.env.NODE_ENV !== "development" ? () => {} : () => {
2703
- const renderedRef = useRef(false);
2704
- useLayoutEffect(() => {
2705
- if (renderedRef.current) {
2706
- log$3.warn("Component re-rendered immediately");
2707
- }
2708
- renderedRef.current = true;
2709
- const raf = requestAnimationFrame(() => {
2710
- renderedRef.current = false;
2711
- });
2712
- return () => {
2713
- cancelAnimationFrame(raf);
2714
- };
2715
- });
2716
- };
2680
+ Logger$1.getLogger("src/index.ts");
2717
2681
 
2718
2682
  // This Source Code Form is subject to the terms of the Mozilla Public
2719
2683
  // License, v2.0. If a copy of the MPL was not distributed with this
@@ -2724,17 +2688,18 @@ Logger$1.getLogger("src/index.ts");
2724
2688
  // This Source Code Form is subject to the terms of the Mozilla Public
2725
2689
  // License, v2.0. If a copy of the MPL was not distributed with this
2726
2690
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
2727
- const log$2 = Logger$1.getLogger("src/index.ts");
2691
+ Logger$1.getLogger("src/index.ts");
2728
2692
  function selectWithUnstableIdentityWarning(value, selector) {
2729
2693
  const result = selector(value);
2730
- if (process.env.NODE_ENV === "development") {
2731
- const secondResult = selector(value);
2732
- if (result !== secondResult) {
2733
- log$2.warn(`Selector ${selector.toString()} produced different values for the same input.
2734
- This will cause unecesessery re-renders of your component.`);
2735
- }
2736
- return secondResult;
2737
- }
2694
+ //if (process.env.NODE_ENV === "development") {
2695
+ // const secondResult = selector(value);
2696
+ // if (result !== secondResult) {
2697
+ // log.warn(`Selector ${selector.toString()} produced different values for the same input.
2698
+ //This will cause unecesessery re-renders of your component.`);
2699
+ // }
2700
+ // return secondResult;
2701
+ //}
2702
+
2738
2703
  return result;
2739
2704
  }
2740
2705
 
@@ -3791,12 +3756,13 @@ function parseMessage(message) {
3791
3756
  // License, v2.0. If a copy of the MPL was not distributed with this
3792
3757
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
3793
3758
 
3759
+ const logger = Logger$2.getLogger();
3794
3760
  let workerIndex = 0;
3795
3761
  const WORKER_COUNT = 3;
3796
3762
  const workerPool = Array.from({
3797
3763
  length: WORKER_COUNT
3798
3764
  }, () => ({
3799
- remote: wrap(new Worker(new URL("depth-coloring.worker-CAXQfIhb.js", import.meta.url), {
3765
+ remote: wrap(new Worker(new URL("depth-coloring.worker-DUhuvX3L.js", import.meta.url), {
3800
3766
  type: "module"
3801
3767
  })),
3802
3768
  busy: false
@@ -3833,14 +3799,14 @@ async function deserializeDepthFrame({
3833
3799
  } = parseMessage(message);
3834
3800
  const worker = getDepthWorker();
3835
3801
  if (!worker) {
3836
- console.warn("All depth workers busy, dropping frame");
3802
+ logger.warn("All depth workers busy, dropping frame");
3837
3803
  return;
3838
3804
  }
3839
3805
  let colorizedData;
3840
3806
  try {
3841
3807
  colorizedData = await worker.colorDepht(transfer(message.data, [message.data.buffer]), encoding, width, height, maxStereoDepth);
3842
3808
  } catch (err) {
3843
- console.error("Error in depth worker:", err);
3809
+ logger.error("Error in depth worker:", err);
3844
3810
  releaseWorker(worker);
3845
3811
  throw err;
3846
3812
  } finally {
@@ -3860,12 +3826,13 @@ async function deserializeDepthFrame({
3860
3826
  receiveTime,
3861
3827
  message: foxgloveMessage,
3862
3828
  sizeInBytes: estimateObjectSize(foxgloveMessage),
3863
- schemaName: "foxglove.RawImage"
3829
+ schemaName: "foxglove.RawImage",
3830
+ depthaiTransformation: message.transformation
3864
3831
  });
3865
3832
  }
3866
3833
  function getDistanceFromDepthDataForOffset(depthData, width, height, xOffset, yOffset) {
3867
3834
  if (xOffset < 0 || xOffset > 1 || yOffset < 0 || yOffset > 1) {
3868
- console.error("Offsets must be between 0 and 1", {
3835
+ logger.error("Offsets must be between 0 and 1", {
3869
3836
  xOffset,
3870
3837
  yOffset
3871
3838
  });
@@ -3907,4 +3874,4 @@ function getDistanceFromDepthDataForOffset(depthData, width, height, xOffset, yO
3907
3874
  return sum / count;
3908
3875
  }
3909
3876
 
3910
- export { arrayPush as $, AppError as A, getAllPanelIds as B, getConfigsForNestedPanelsInsideTab as C, DEFAULT_TAB_PANEL_CONFIG as D, reorderTabWithinTabPanel as E, moveTabBetweenTabPanels as F, isTabPanelConfig as G, addPanelToTab as H, createAddUpdates as I, filterMap as J, uniq as K, Logger$1 as L, useShallowMemo as M, CurrentLayoutContext as N, MessageOrderTracker as O, AppConfigurationContext as P, getDistanceFromDepthDataForOffset as Q, parseMessage as R, fromMillis as S, TAB_PANEL_TYPE as T, parsePixelFormat as U, deserializeDepthFrame as V, isSymbol as W, toString as X, keys as Y, getSymbols as Z, stubArray as _, baseEach as a, baseGetAllKeys as a0, getAllKeys as a1, arrayMap as a2, useMustNotChange as a3, useCurrentLayoutActions as a4, useCurrentLayoutSelector as a5, usePanelMosaicId as a6, noop as a7, useSelectedPanels as a8, useAppConfiguration as a9, useJsonTreeTheme as aa, baseFlatten as b, baseIteratee as c, dist as d, estimateObjectSize as e, baseDifference as f, getTag as g, baseKeys as h, baseIsEqual as i, castPath as j, baseGet as k, hasIn as l, shallowequal$1 as m, getPanelIdsInsideTabPanels as n, getPanelTypeFromId as o, removePanelFromTabPanel as p, getPanelIdForType as q, reportError as r, sendNotification as s, toKey as t, useGuaranteedContext as u, getPathFromNode as v, updateTabPanelLayout as w, getSaveConfigsPayloadForAddedPanel as x, replaceAndRemovePanels as y, inlineTabPanelLayouts as z };
3877
+ export { arrayPush as $, AppError as A, getAllPanelIds as B, getConfigsForNestedPanelsInsideTab as C, DEFAULT_TAB_PANEL_CONFIG as D, reorderTabWithinTabPanel as E, moveTabBetweenTabPanels as F, isTabPanelConfig as G, addPanelToTab as H, createAddUpdates as I, filterMap as J, uniq as K, Logger$1 as L, useShallowMemo as M, CurrentLayoutContext as N, MessageOrderTracker as O, AppConfigurationContext as P, getDistanceFromDepthDataForOffset as Q, parseMessage as R, fromMillis as S, TAB_PANEL_TYPE as T, parsePixelFormat as U, deserializeDepthFrame as V, isSymbol as W, toString as X, keys as Y, getSymbols as Z, stubArray as _, baseEach as a, baseGetAllKeys as a0, getAllKeys as a1, arrayMap as a2, useCurrentLayoutActions as a3, useCurrentLayoutSelector as a4, usePanelMosaicId as a5, noop as a6, useSelectedPanels as a7, useAppConfiguration as a8, useJsonTreeTheme as a9, baseFlatten as b, baseIteratee as c, dist as d, estimateObjectSize as e, baseDifference as f, getTag as g, baseKeys as h, baseIsEqual as i, castPath as j, baseGet as k, hasIn as l, shallowequal$1 as m, getPanelIdsInsideTabPanels as n, getPanelTypeFromId as o, removePanelFromTabPanel as p, getPanelIdForType as q, reportError as r, sendNotification as s, toKey as t, useGuaranteedContext as u, getPathFromNode as v, updateTabPanelLayout as w, getSaveConfigsPayloadForAddedPanel as x, replaceAndRemovePanels as y, inlineTabPanelLayouts as z };
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { e as expose, t as transfer } from './comlink-wXOdMqIH.js';
2
+ import { e as expose, t as transfer } from './comlink-jf8bdrAf.js';
3
3
 
4
4
  // This Source Code Form is subject to the terms of the Mozilla Public
5
5
  // License, v2.0. If a copy of the MPL was not distributed with this