@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.
- package/dist/{FoxgloveServer-B98MHUu6.js → FoxgloveServer-CzGfv6A4.js} +1 -1
- package/dist/{WorkerImageDecoder.worker-Db4_QpUB.js → WorkerImageDecoder.worker-BlZI81p6.js} +8 -5
- package/dist/{comlink-wXOdMqIH.js → comlink-jf8bdrAf.js} +1 -1
- package/dist/{communicator-D1clAtYY.js → communicator-Bry8Rhl_.js} +5 -2
- package/dist/{depth-CkdNsD0V.js → depth-Be6jMsNV.js} +26 -59
- package/dist/{depth-coloring.worker-CAXQfIhb.js → depth-coloring.worker-DUhuvX3L.js} +1 -1
- package/dist/{deserialization.worker-Dk0EAxcN.js → deserialization.worker-BRFVmAW6.js} +134 -39
- package/dist/{foxglove-protocol-yHdoBNaD.js → foxglove-protocol-BvaCHfze.js} +1 -1
- package/dist/{index-BKhOob8J.js → index-6BlZXZuC.js} +7 -6
- package/dist/{index--7zF5j2F.js → index-7ZRO7erP.js} +7 -6
- package/dist/{index-BKvr2diy.js → index-B1qvG-qo.js} +7 -6
- package/dist/{index-6y4BHaTv.js → index-B6jTuetX.js} +7 -6
- package/dist/{index-165NQw4s.js → index-BAyXlO8J.js} +7 -6
- package/dist/{index-Dqm1x8G2.js → index-BLi9zAwC.js} +1 -1
- package/dist/{index-Cd2_mC61.js → index-BlYRUX1p.js} +7 -6
- package/dist/{index-BivmOUGy.js → index-CUOzEGiw.js} +298 -39
- package/dist/{index-BfR1RnVM.js → index-CbPp1IVO.js} +7 -6
- package/dist/{index-RMfbXPEI.js → index-CchVwbzA.js} +7 -6
- package/dist/{index-BMQAXq3K.js → index-CnfGAo2c.js} +7 -6
- package/dist/{index-CJzVlQUM.js → index-Czx66qud.js} +7 -6
- package/dist/{index-CNxUodri.js → index-D-yirRS0.js} +7 -6
- package/dist/{index-BnFtyl1Q.js → index-D4JcPcem.js} +7 -6
- package/dist/{index-DobeFhJx.js → index-D61TcvW7.js} +7 -6
- package/dist/{index-Zif42mqA.js → index-DNSv_gUV.js} +9 -8
- package/dist/{index-DJ8wqRwk.js → index-DSRKZJLN.js} +7 -6
- package/dist/{index-CPFkLEs7.js → index-DziMrclw.js} +7 -6
- package/dist/{index-BZWz9-n6.js → index-T8Clygdf.js} +7 -6
- package/dist/{index-BQjMARFl.js → index-g-SFBx17.js} +7 -6
- package/dist/{index-D07SrTQe.js → index-pQMSWqkM.js} +5789 -6331
- package/dist/index.js +8 -7
- package/dist/lib/src/connection/adapter.d.ts.map +1 -1
- package/dist/lib/src/connection/adapter.js +26 -9
- package/dist/lib/src/connection/adapter.js.map +1 -1
- package/dist/lib/src/connection/communicator.d.ts.map +1 -1
- package/dist/lib/src/connection/communicator.js +3 -1
- package/dist/lib/src/connection/communicator.js.map +1 -1
- package/dist/lib/src/connection/connection.d.ts.map +1 -1
- package/dist/lib/src/connection/connection.js +44 -5
- package/dist/lib/src/connection/connection.js.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.js +5 -3
- package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
- package/dist/lib/src/connection/webrtc/bridge.d.ts.map +1 -1
- package/dist/lib/src/connection/webrtc/bridge.js +31 -7
- package/dist/lib/src/connection/webrtc/bridge.js.map +1 -1
- package/dist/lib/src/connection/webrtc/comms-proxy.d.ts +1 -2
- package/dist/lib/src/connection/webrtc/comms-proxy.d.ts.map +1 -1
- package/dist/lib/src/connection/webrtc/comms-proxy.js +31 -16
- package/dist/lib/src/connection/webrtc/comms-proxy.js.map +1 -1
- package/dist/lib/src/connection/ws/worker.d.ts.map +1 -1
- package/dist/lib/src/connection/ws/worker.js +15 -1
- package/dist/lib/src/connection/ws/worker.js.map +1 -1
- package/dist/lib/src/context/MessagePipelineProvider.d.ts.map +1 -1
- package/dist/lib/src/context/MessagePipelineProvider.js +3 -1
- package/dist/lib/src/context/MessagePipelineProvider.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/custom.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/custom.js +6 -5
- package/dist/lib/src/messaging/deserialization/detections/custom.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/detection.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/detection.js +61 -20
- package/dist/lib/src/messaging/deserialization/detections/detection.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js +12 -10
- package/dist/lib/src/messaging/deserialization/pointcloud/pointcloudFromDepth.worker.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.d.ts +8 -5
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.js +27 -22
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/color.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/color.js +2 -1
- package/dist/lib/src/messaging/deserialization/video/color.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.js +6 -3
- package/dist/lib/src/messaging/deserialization/video/depth.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h264.d.ts +2 -1
- package/dist/lib/src/messaging/deserialization/video/h264.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h264.js +12 -5
- package/dist/lib/src/messaging/deserialization/video/h264.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts +2 -1
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js +10 -3
- package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/mjpeg.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/mjpeg.js +2 -1
- package/dist/lib/src/messaging/deserialization/video/mjpeg.js.map +1 -1
- package/dist/lib/src/messaging/deserialization.worker.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization.worker.js +6 -4
- package/dist/lib/src/messaging/deserialization.worker.js.map +1 -1
- package/dist/lib/src/messaging/message-handler.d.ts +1 -0
- package/dist/lib/src/messaging/message-handler.d.ts.map +1 -1
- package/dist/lib/src/messaging/message-handler.js +18 -9
- package/dist/lib/src/messaging/message-handler.js.map +1 -1
- package/dist/lib/src/output.css +7 -1
- package/dist/lib/src/protobuf.generated/RGBDData.d.ts +36 -0
- package/dist/lib/src/protobuf.generated/RGBDData.d.ts.map +1 -0
- package/dist/lib/src/protobuf.generated/RGBDData.js +187 -0
- package/dist/lib/src/protobuf.generated/RGBDData.js.map +1 -0
- package/dist/lib/src/protobuf.generated/SegmentationMask.d.ts +35 -0
- package/dist/lib/src/protobuf.generated/SegmentationMask.d.ts.map +1 -0
- package/dist/lib/src/protobuf.generated/SegmentationMask.js +220 -0
- package/dist/lib/src/protobuf.generated/SegmentationMask.js.map +1 -0
- package/dist/lib/src/utils/artificial-worker.d.ts +1 -0
- package/dist/lib/src/utils/artificial-worker.d.ts.map +1 -1
- package/dist/lib/src/utils/artificial-worker.js +4 -0
- package/dist/lib/src/utils/artificial-worker.js.map +1 -1
- package/dist/lib/src/utils/compatibility.d.ts.map +1 -1
- package/dist/lib/src/utils/compatibility.js +3 -1
- package/dist/lib/src/utils/compatibility.js.map +1 -1
- package/dist/lib/src/utils/frame-store.d.ts.map +1 -1
- package/dist/lib/src/utils/frame-store.js +3 -1
- package/dist/lib/src/utils/frame-store.js.map +1 -1
- package/dist/lib/src/utils/logger.d.ts +16 -0
- package/dist/lib/src/utils/logger.d.ts.map +1 -0
- package/dist/lib/src/utils/logger.js +59 -0
- package/dist/lib/src/utils/logger.js.map +1 -0
- package/dist/logger-CgxnhrWP.js +196 -0
- package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.d.ts.map +1 -1
- package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.js +1 -2
- package/dist/packages/studio-base/src/components/ForwardAnalyticsContextProvider.js.map +1 -1
- package/dist/packages/studio-base/src/components/Panel.d.ts.map +1 -1
- package/dist/packages/studio-base/src/components/Panel.js +1 -1
- package/dist/packages/studio-base/src/components/Panel.js.map +1 -1
- package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.d.ts.map +1 -1
- package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.js +0 -1
- package/dist/packages/studio-base/src/components/PanelExtensionAdapter/PanelExtensionAdapter.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js +0 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js +9 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandlerV2.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandlerV2.js +9 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandlerV2.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/depthaiTransform.d.ts +18 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/depthaiTransform.d.ts.map +1 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/depthaiTransform.js +170 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/depthaiTransform.js.map +1 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.js +32 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/ImageRenderable.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.js +49 -14
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/Images/WorkerImageDecoder.js.map +1 -1
- package/dist/{pointcloudFromDepth.worker-C1fqIMlp.js → pointcloudFromDepth.worker-BcnsKUSs.js} +13 -11
- package/dist/{protobuf-Be0G3NFz.js → protobuf-fLt-ppqN.js} +2 -125
- package/dist/{worker-B6paT-I9.js → worker-BGG-ZdUp.js} +28 -4
- package/dist/{worker-BdmIK_Az.js → worker-DR9o4zBS.js} +5 -4
- package/package.json +2 -2
package/dist/{WorkerImageDecoder.worker-Db4_QpUB.js → WorkerImageDecoder.worker-BlZI81p6.js}
RENAMED
|
@@ -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
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
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
|
-
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import { useContext, useRef,
|
|
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$
|
|
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$
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
This will cause unecesessery re-renders of your component.`);
|
|
2735
|
-
|
|
2736
|
-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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-
|
|
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
|