@luxonis/visualizer-protobuf 3.0.1-rc.16 → 3.0.1-rc.18
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-CzGfv6A4.js → FoxgloveServer-Ck4XVALC.js} +1 -1
- package/dist/{comlink-wXOdMqIH.js → comlink-jf8bdrAf.js} +1 -1
- package/dist/{communicator-Bry8Rhl_.js → communicator-DwoWapnY.js} +1 -1
- package/dist/{depth-CQVPltgS.js → depth-Db-UjzPs.js} +94 -94
- package/dist/{depth-coloring.worker-CAXQfIhb.js → depth-coloring.worker-DUhuvX3L.js} +1 -1
- package/dist/{deserialization.worker-Dr424k53.js → deserialization.worker-DUMQjW13.js} +4 -4
- package/dist/{foxglove-protocol-BvaCHfze.js → foxglove-protocol-DDWtWavo.js} +1 -1
- package/dist/{index-C7l2yMik.js → index-B3E8Emlx.js} +6 -6
- package/dist/{index-BLi9zAwC.js → index-B4Qrfc5I.js} +1 -1
- package/dist/{index-90kuP7Zr.js → index-B8LgmNDv.js} +6 -6
- package/dist/{index-D0GXfekd.js → index-B9kBmtfh.js} +6 -6
- package/dist/{index-DkTHEUOl.js → index-BN5b4J3R.js} +6 -6
- package/dist/{index-BO7ipzLG.js → index-BUARVemy.js} +6 -6
- package/dist/{index-CLrGtKvK.js → index-BcZJ4CKj.js} +6 -6
- package/dist/{index-DD1wilN4.js → index-BhPL--g_.js} +1615 -191
- package/dist/{index-CDOlzobn.js → index-C9mkbELo.js} +6 -6
- package/dist/{index-Bpz9uTZD.js → index-CZqo-bSr.js} +6 -6
- package/dist/{index-37JMu5sE.js → index-CayXu8D7.js} +6 -6
- package/dist/{index-CX0pduhr.js → index-Ck3n7Ifz.js} +8 -8
- package/dist/{index-DuZSXE_j.js → index-CtCMxyFT.js} +6 -6
- package/dist/{index-YWTcJoMa.js → index-DKKWSSUF.js} +6 -6
- package/dist/{index-CSNtuDOm.js → index-DdbpT0E0.js} +6 -6
- package/dist/{index-CrHCIKTS.js → index-Dig3K-cY.js} +6 -6
- package/dist/{index-BRisnjOE.js → index-LrR7lL4Q.js} +6 -6
- package/dist/{index-C79dQovA.js → index-O3rUkGYw.js} +89 -24
- package/dist/{index-CLfDxA5m.js → index-Z7OejDH3.js} +6 -6
- package/dist/{index-mzX37Qef.js → index-hAYdj6GL.js} +6 -6
- package/dist/{index-B9wqEESZ.js → index-xDe5AgwY.js} +6 -6
- package/dist/index.js +6 -6
- package/dist/lib/src/connection/adapter.d.ts.map +1 -1
- package/dist/lib/src/connection/adapter.js +20 -5
- package/dist/lib/src/connection/adapter.js.map +1 -1
- package/dist/lib/src/connection/connection.d.ts.map +1 -1
- package/dist/lib/src/connection/connection.js +41 -4
- package/dist/lib/src/connection/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 +25 -3
- package/dist/lib/src/connection/webrtc/bridge.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 +12 -9
- package/dist/lib/src/messaging/deserialization/pointcloud/poitcloudPoolManager.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/EncodedFrame.js +1 -1
- package/dist/lib/src/protobuf.generated/EncodedFrame.js.map +1 -1
- package/dist/lib/src/protobuf.generated/Event.js +1 -1
- package/dist/lib/src/protobuf.generated/Event.js.map +1 -1
- package/dist/lib/src/protobuf.generated/IMUData.js +1 -1
- package/dist/lib/src/protobuf.generated/IMUData.js.map +1 -1
- package/dist/lib/src/protobuf.generated/ImageAnnotations.js +1 -1
- package/dist/lib/src/protobuf.generated/ImageAnnotations.js.map +1 -1
- package/dist/lib/src/protobuf.generated/ImgDetections.js +1 -1
- package/dist/lib/src/protobuf.generated/ImgDetections.js.map +1 -1
- package/dist/lib/src/protobuf.generated/ImgFrame.js +1 -1
- package/dist/lib/src/protobuf.generated/ImgFrame.js.map +1 -1
- package/dist/lib/src/protobuf.generated/PointCloudData.js +1 -1
- package/dist/lib/src/protobuf.generated/PointCloudData.js.map +1 -1
- package/dist/lib/src/protobuf.generated/RGBDData.js +1 -1
- package/dist/lib/src/protobuf.generated/RGBDData.js.map +1 -1
- package/dist/lib/src/protobuf.generated/SegmentationMask.js +1 -1
- package/dist/lib/src/protobuf.generated/SegmentationMask.js.map +1 -1
- package/dist/lib/src/protobuf.generated/SpatialImgDetections.js +1 -1
- package/dist/lib/src/protobuf.generated/SpatialImgDetections.js.map +1 -1
- package/dist/lib/src/protobuf.generated/common.js +1 -1
- package/dist/lib/src/protobuf.generated/common.js.map +1 -1
- 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/{pointcloudFromDepth.worker-CX0uQPAS.js → pointcloudFromDepth.worker-BcnsKUSs.js} +1 -1
- package/dist/{protobuf-fLt-ppqN.js → protobuf-C2hFflNu.js} +8 -8
- package/dist/{worker-BGG-ZdUp.js → worker-CHANzqz1.js} +3 -3
- package/dist/{worker-DR9o4zBS.js → worker-Dtxm0lWz.js} +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { L as Logger, _ as _classPrivateFieldLooseBase, b as _objectSpread2, a as _classPrivateFieldLooseKey } from './logger-CgxnhrWP.js';
|
|
3
|
-
import { p as protobufsBySchema } from './protobuf-
|
|
3
|
+
import { p as protobufsBySchema } from './protobuf-C2hFflNu.js';
|
|
4
4
|
import { r as recordToDataView } from './encoding-jXImCIb4.js';
|
|
5
5
|
|
|
6
6
|
const logger = Logger.getLogger();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { w as wrap, t as transfer } from './comlink-
|
|
2
|
+
import { w as wrap, t as transfer } from './comlink-jf8bdrAf.js';
|
|
3
3
|
import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, b as _objectSpread2, L as Logger$2 } from './logger-CgxnhrWP.js';
|
|
4
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-
|
|
7
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs, T as Type } from './protobuf-C2hFflNu.js';
|
|
8
8
|
import { useTheme } from '@mui/material';
|
|
9
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';
|
|
10
10
|
|
|
@@ -547,90 +547,6 @@ var Logger$1 = Logger.default;
|
|
|
547
547
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
548
548
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
549
549
|
|
|
550
|
-
const log$2 = Logger$1.getLogger("src/index.ts");
|
|
551
|
-
/**
|
|
552
|
-
* Values of the contants below are a (more or less) informed guesses and not guaranteed to be accurate.
|
|
553
|
-
*/
|
|
554
|
-
const COMPRESSED_POINTER_SIZE = 4; // Pointers use 4 bytes (also on 64-bit systems) due to pointer compression
|
|
555
|
-
const OBJECT_BASE_SIZE = 3 * COMPRESSED_POINTER_SIZE; // 3 compressed pointers
|
|
556
|
-
// Arrays have an additional length property (1 pointer) and a backing store header (2 pointers)
|
|
557
|
-
// See https://stackoverflow.com/a/70550693.
|
|
558
|
-
const ARRAY_BASE_SIZE = OBJECT_BASE_SIZE + 3 * COMPRESSED_POINTER_SIZE;
|
|
559
|
-
const TYPED_ARRAY_BASE_SIZE = 25 * COMPRESSED_POINTER_SIZE; // byteLength, byteOffset, ..., see https://stackoverflow.com/a/45808835
|
|
560
|
-
const SMALL_INTEGER_SIZE = COMPRESSED_POINTER_SIZE; // Small integers (up to 31 bits), pointer tagging
|
|
561
|
-
const HEAP_NUMBER_SIZE = 8 + 2 * COMPRESSED_POINTER_SIZE; // 4-byte map pointer + 8-byte payload + property pointer
|
|
562
|
-
const MAX_NUM_FAST_PROPERTIES = 1020;
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* Estimate the size in bytes of an arbitrary object or primitive.
|
|
566
|
-
* @param obj Object or primitive to estimate the size for
|
|
567
|
-
* @returns Estimated size in bytes
|
|
568
|
-
*/
|
|
569
|
-
function estimateObjectSize(obj) {
|
|
570
|
-
// catches null and undefined
|
|
571
|
-
// typeof null == "object"
|
|
572
|
-
if (obj == undefined) {
|
|
573
|
-
return SMALL_INTEGER_SIZE;
|
|
574
|
-
}
|
|
575
|
-
switch (typeof obj) {
|
|
576
|
-
case "undefined":
|
|
577
|
-
case "boolean":
|
|
578
|
-
{
|
|
579
|
-
return SMALL_INTEGER_SIZE;
|
|
580
|
-
}
|
|
581
|
-
case "number":
|
|
582
|
-
{
|
|
583
|
-
return Number.isInteger(obj) ? SMALL_INTEGER_SIZE : HEAP_NUMBER_SIZE;
|
|
584
|
-
}
|
|
585
|
-
case "bigint":
|
|
586
|
-
{
|
|
587
|
-
return HEAP_NUMBER_SIZE;
|
|
588
|
-
}
|
|
589
|
-
case "string":
|
|
590
|
-
{
|
|
591
|
-
// The string length is rounded up to the next multiple of 4.
|
|
592
|
-
return COMPRESSED_POINTER_SIZE + OBJECT_BASE_SIZE + Math.ceil(obj.length / 4) * 4;
|
|
593
|
-
}
|
|
594
|
-
case "object":
|
|
595
|
-
{
|
|
596
|
-
if (Array.isArray(obj)) {
|
|
597
|
-
return COMPRESSED_POINTER_SIZE + ARRAY_BASE_SIZE + Object.values(obj).reduce((acc, val) => acc + estimateObjectSize(val), 0);
|
|
598
|
-
} else if (ArrayBuffer.isView(obj)) {
|
|
599
|
-
return TYPED_ARRAY_BASE_SIZE + obj.byteLength;
|
|
600
|
-
} else if (obj instanceof Set) {
|
|
601
|
-
return COMPRESSED_POINTER_SIZE + OBJECT_BASE_SIZE + Array.from(obj.values()).reduce((acc, val) => acc + estimateObjectSize(val), 0);
|
|
602
|
-
} else if (obj instanceof Map) {
|
|
603
|
-
return COMPRESSED_POINTER_SIZE + OBJECT_BASE_SIZE + Array.from(obj.entries()).reduce((acc, [key, val]) => acc + estimateObjectSize(key) + estimateObjectSize(val), 0);
|
|
604
|
-
}
|
|
605
|
-
let propertiesSize = 0;
|
|
606
|
-
const numProps = Object.keys(obj).length;
|
|
607
|
-
if (numProps > MAX_NUM_FAST_PROPERTIES) {
|
|
608
|
-
// If there are too many properties, V8 stores Objects in dictionary mode (slow properties)
|
|
609
|
-
// with each object having a self-contained dictionary. This dictionary contains the key, value
|
|
610
|
-
// and details of properties. Below we estimate the size of this additional dictionary. Formula
|
|
611
|
-
// adapted from
|
|
612
|
-
// medium.com/@bpmxmqd/v8-engine-jsobject-structure-analysis-and-memory-optimization-ideas-be30cfcdcd16
|
|
613
|
-
const propertiesDictSize = 16 + 5 * 8 + 2 ** Math.ceil(Math.log2((numProps + 2) * 1.5)) * 3 * 4;
|
|
614
|
-
// In return, properties are no longer stored in the properties array, so we subtract that.
|
|
615
|
-
propertiesSize = propertiesDictSize - numProps * COMPRESSED_POINTER_SIZE;
|
|
616
|
-
}
|
|
617
|
-
const valuesSize = Object.values(obj).reduce((acc, val) => acc + estimateObjectSize(val), 0);
|
|
618
|
-
return OBJECT_BASE_SIZE + propertiesSize + valuesSize;
|
|
619
|
-
}
|
|
620
|
-
case "symbol":
|
|
621
|
-
case "function":
|
|
622
|
-
{
|
|
623
|
-
throw new Error(`Can't estimate size of type '${typeof obj}'`);
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
log$2.error(`Can't estimate size of type '${typeof obj}'`);
|
|
627
|
-
return SMALL_INTEGER_SIZE;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
631
|
-
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
632
|
-
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
633
|
-
|
|
634
550
|
const globalWithHandler = global;
|
|
635
551
|
|
|
636
552
|
/**
|
|
@@ -2819,7 +2735,7 @@ function useJsonTreeTheme() {
|
|
|
2819
2735
|
}
|
|
2820
2736
|
const TAB_PANEL_TYPE = "Tab";
|
|
2821
2737
|
|
|
2822
|
-
const log$
|
|
2738
|
+
const log$2 = Logger$1.getLogger("src/index.ts");
|
|
2823
2739
|
|
|
2824
2740
|
// given a panel type, create a unique id for a panel
|
|
2825
2741
|
// with the type embedded within the id
|
|
@@ -3034,13 +2950,13 @@ const validateTabPanelConfig = config => {
|
|
|
3034
2950
|
}
|
|
3035
2951
|
if (!Array.isArray(config.tabs) || typeof config.activeTabIdx !== "number") {
|
|
3036
2952
|
const error = new Error("A non-Tab panel config is being operated on as if it were a Tab panel.");
|
|
3037
|
-
log$
|
|
2953
|
+
log$2.info(`Invalid Tab panel config: ${error.message}`, config);
|
|
3038
2954
|
reportError(error);
|
|
3039
2955
|
return false;
|
|
3040
2956
|
}
|
|
3041
2957
|
if (config.activeTabIdx >= config.tabs.length) {
|
|
3042
2958
|
const error = new Error("A Tab panel has an activeTabIdx for a nonexistent tab.");
|
|
3043
|
-
log$
|
|
2959
|
+
log$2.info(`Invalid Tab panel config: ${error.message}`, config);
|
|
3044
2960
|
reportError(error);
|
|
3045
2961
|
return false;
|
|
3046
2962
|
}
|
|
@@ -3312,7 +3228,7 @@ function toggleSelectedPanel(panelId, containingTabId, configById, selectedPanel
|
|
|
3312
3228
|
* part of a saved "layout") used by the current workspace.
|
|
3313
3229
|
*/
|
|
3314
3230
|
|
|
3315
|
-
const log = Logger$1.getLogger("src/index.ts");
|
|
3231
|
+
const log$1 = Logger$1.getLogger("src/index.ts");
|
|
3316
3232
|
const CurrentLayoutContext = /*#__PURE__*/createContext(undefined);
|
|
3317
3233
|
CurrentLayoutContext.displayName = "CurrentLayoutContext";
|
|
3318
3234
|
function usePanelMosaicId() {
|
|
@@ -3327,7 +3243,7 @@ function useCurrentLayoutSelector(selector) {
|
|
|
3327
3243
|
|
|
3328
3244
|
// Catch locations using unstable function selectors
|
|
3329
3245
|
useShouldNotChangeOften(selector, () => {
|
|
3330
|
-
log.warn("useCurrentLayoutSelector is changing frequently. Rewrite your selector as a stable function.");
|
|
3246
|
+
log$1.warn("useCurrentLayoutSelector is changing frequently. Rewrite your selector as a stable function.");
|
|
3331
3247
|
});
|
|
3332
3248
|
const state = useRef(undefined);
|
|
3333
3249
|
if (!state.current || selector !== state.current.selector) {
|
|
@@ -3647,6 +3563,91 @@ sendNotification.expectCalledDuringTest = () => {
|
|
|
3647
3563
|
throw new Error("Should be overriden in setupTestFramework.ts");
|
|
3648
3564
|
};
|
|
3649
3565
|
|
|
3566
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
3567
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3568
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
3569
|
+
const log = Logger$1.getLogger("src/index.ts");
|
|
3570
|
+
/**
|
|
3571
|
+
* Values of the contants below are a (more or less) informed guesses and not guaranteed to be accurate.
|
|
3572
|
+
*/
|
|
3573
|
+
const COMPRESSED_POINTER_SIZE = 4; // Pointers use 4 bytes (also on 64-bit systems) due to pointer compression
|
|
3574
|
+
const OBJECT_BASE_SIZE = 3 * COMPRESSED_POINTER_SIZE; // 3 compressed pointers
|
|
3575
|
+
// Arrays have an additional length property (1 pointer) and a backing store header (2 pointers)
|
|
3576
|
+
// See https://stackoverflow.com/a/70550693.
|
|
3577
|
+
const ARRAY_BASE_SIZE = OBJECT_BASE_SIZE + 3 * COMPRESSED_POINTER_SIZE;
|
|
3578
|
+
const TYPED_ARRAY_BASE_SIZE = 25 * COMPRESSED_POINTER_SIZE; // byteLength, byteOffset, ..., see https://stackoverflow.com/a/45808835
|
|
3579
|
+
const SMALL_INTEGER_SIZE = COMPRESSED_POINTER_SIZE; // Small integers (up to 31 bits), pointer tagging
|
|
3580
|
+
const HEAP_NUMBER_SIZE = 8 + 2 * COMPRESSED_POINTER_SIZE; // 4-byte map pointer + 8-byte payload + property pointer
|
|
3581
|
+
const MAX_NUM_FAST_PROPERTIES = 1020;
|
|
3582
|
+
/**
|
|
3583
|
+
* Estimate the size in bytes of an arbitrary object or primitive.
|
|
3584
|
+
* @param obj Object or primitive to estimate the size for
|
|
3585
|
+
* @returns Estimated size in bytes
|
|
3586
|
+
*/
|
|
3587
|
+
function estimateObjectSize(obj) {
|
|
3588
|
+
// catches null and undefined
|
|
3589
|
+
// typeof null == "object"
|
|
3590
|
+
if (obj == undefined) {
|
|
3591
|
+
return SMALL_INTEGER_SIZE;
|
|
3592
|
+
}
|
|
3593
|
+
switch (typeof obj) {
|
|
3594
|
+
case "undefined":
|
|
3595
|
+
case "boolean": {
|
|
3596
|
+
return SMALL_INTEGER_SIZE;
|
|
3597
|
+
}
|
|
3598
|
+
case "number": {
|
|
3599
|
+
return Number.isInteger(obj) ? SMALL_INTEGER_SIZE : HEAP_NUMBER_SIZE;
|
|
3600
|
+
}
|
|
3601
|
+
case "bigint": {
|
|
3602
|
+
return HEAP_NUMBER_SIZE;
|
|
3603
|
+
}
|
|
3604
|
+
case "string": {
|
|
3605
|
+
// The string length is rounded up to the next multiple of 4.
|
|
3606
|
+
return COMPRESSED_POINTER_SIZE + OBJECT_BASE_SIZE + Math.ceil(obj.length / 4) * 4;
|
|
3607
|
+
}
|
|
3608
|
+
case "object": {
|
|
3609
|
+
if (Array.isArray(obj)) {
|
|
3610
|
+
return (COMPRESSED_POINTER_SIZE +
|
|
3611
|
+
ARRAY_BASE_SIZE +
|
|
3612
|
+
Object.values(obj).reduce((acc, val) => acc + estimateObjectSize(val), 0));
|
|
3613
|
+
}
|
|
3614
|
+
else if (ArrayBuffer.isView(obj)) {
|
|
3615
|
+
return TYPED_ARRAY_BASE_SIZE + obj.byteLength;
|
|
3616
|
+
}
|
|
3617
|
+
else if (obj instanceof Set) {
|
|
3618
|
+
return (COMPRESSED_POINTER_SIZE +
|
|
3619
|
+
OBJECT_BASE_SIZE +
|
|
3620
|
+
Array.from(obj.values()).reduce((acc, val) => acc + estimateObjectSize(val), 0));
|
|
3621
|
+
}
|
|
3622
|
+
else if (obj instanceof Map) {
|
|
3623
|
+
return (COMPRESSED_POINTER_SIZE +
|
|
3624
|
+
OBJECT_BASE_SIZE +
|
|
3625
|
+
Array.from(obj.entries()).reduce((acc, [key, val]) => acc + estimateObjectSize(key) + estimateObjectSize(val), 0));
|
|
3626
|
+
}
|
|
3627
|
+
let propertiesSize = 0;
|
|
3628
|
+
const numProps = Object.keys(obj).length;
|
|
3629
|
+
if (numProps > MAX_NUM_FAST_PROPERTIES) {
|
|
3630
|
+
// If there are too many properties, V8 stores Objects in dictionary mode (slow properties)
|
|
3631
|
+
// with each object having a self-contained dictionary. This dictionary contains the key, value
|
|
3632
|
+
// and details of properties. Below we estimate the size of this additional dictionary. Formula
|
|
3633
|
+
// adapted from
|
|
3634
|
+
// medium.com/@bpmxmqd/v8-engine-jsobject-structure-analysis-and-memory-optimization-ideas-be30cfcdcd16
|
|
3635
|
+
const propertiesDictSize = 16 + 5 * 8 + 2 ** Math.ceil(Math.log2((numProps + 2) * 1.5)) * 3 * 4;
|
|
3636
|
+
// In return, properties are no longer stored in the properties array, so we subtract that.
|
|
3637
|
+
propertiesSize = propertiesDictSize - numProps * COMPRESSED_POINTER_SIZE;
|
|
3638
|
+
}
|
|
3639
|
+
const valuesSize = Object.values(obj).reduce((acc, val) => acc + estimateObjectSize(val), 0);
|
|
3640
|
+
return OBJECT_BASE_SIZE + propertiesSize + valuesSize;
|
|
3641
|
+
}
|
|
3642
|
+
case "symbol":
|
|
3643
|
+
case "function": {
|
|
3644
|
+
throw new Error(`Can't estimate size of type '${typeof obj}'`);
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
log.error(`Can't estimate size of type '${typeof obj}'`);
|
|
3648
|
+
return SMALL_INTEGER_SIZE;
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3650
3651
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
3651
3652
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3652
3653
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
@@ -3659,7 +3660,6 @@ sendNotification.expectCalledDuringTest = () => {
|
|
|
3659
3660
|
// This source code is licensed under the Apache License, Version 2.0,
|
|
3660
3661
|
// found at http://www.apache.org/licenses/LICENSE-2.0
|
|
3661
3662
|
// You may not use this file except in compliance with the License.
|
|
3662
|
-
|
|
3663
3663
|
Logger$1.getLogger("src/index.ts");
|
|
3664
3664
|
|
|
3665
3665
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -3762,7 +3762,7 @@ const WORKER_COUNT = 3;
|
|
|
3762
3762
|
const workerPool = Array.from({
|
|
3763
3763
|
length: WORKER_COUNT
|
|
3764
3764
|
}, () => ({
|
|
3765
|
-
remote: wrap(new Worker(new URL("depth-coloring.worker-
|
|
3765
|
+
remote: wrap(new Worker(new URL("depth-coloring.worker-DUhuvX3L.js", import.meta.url), {
|
|
3766
3766
|
type: "module"
|
|
3767
3767
|
})),
|
|
3768
3768
|
busy: false
|
|
@@ -3874,4 +3874,4 @@ function getDistanceFromDepthDataForOffset(depthData, width, height, xOffset, yO
|
|
|
3874
3874
|
return sum / count;
|
|
3875
3875
|
}
|
|
3876
3876
|
|
|
3877
|
-
export { arrayPush as $, AppError as A,
|
|
3877
|
+
export { arrayPush as $, AppError as A, getConfigsForNestedPanelsInsideTab as B, reorderTabWithinTabPanel as C, DEFAULT_TAB_PANEL_CONFIG as D, moveTabBetweenTabPanels as E, isTabPanelConfig as F, addPanelToTab as G, createAddUpdates as H, filterMap as I, uniq as J, useShallowMemo as K, Logger$1 as L, CurrentLayoutContext as M, MessageOrderTracker as N, AppConfigurationContext as O, getDistanceFromDepthDataForOffset as P, parseMessage as Q, estimateObjectSize 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, baseDifference as e, baseKeys as f, getTag as g, baseIsEqual as h, castPath as i, baseGet as j, hasIn as k, shallowequal$1 as l, getPanelIdsInsideTabPanels as m, getPanelTypeFromId as n, removePanelFromTabPanel as o, getPanelIdForType as p, getPathFromNode as q, reportError as r, sendNotification as s, toKey as t, useGuaranteedContext as u, updateTabPanelLayout as v, getSaveConfigsPayloadForAddedPanel as w, replaceAndRemovePanels as x, inlineTabPanelLayouts as y, getAllPanelIds 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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { b as _objectSpread2, L as Logger } from './logger-CgxnhrWP.js';
|
|
3
|
-
import { e as expose } from './comlink-
|
|
4
|
-
import { t as typescript } from './index-
|
|
5
|
-
import {
|
|
6
|
-
import { P as PointsAnnotationType, p as protobufsBySchema, T as Type, b as Profile } from './protobuf-
|
|
3
|
+
import { e as expose } from './comlink-jf8bdrAf.js';
|
|
4
|
+
import { t as typescript } from './index-B4Qrfc5I.js';
|
|
5
|
+
import { Q as parseMessage, R as estimateObjectSize, S as fromMillis, d as dist, U as parsePixelFormat, V as deserializeDepthFrame } from './depth-Db-UjzPs.js';
|
|
6
|
+
import { P as PointsAnnotationType, p as protobufsBySchema, T as Type, b as Profile } from './protobuf-C2hFflNu.js';
|
|
7
7
|
import { i as isCapableOfEncodedStream } from './encoding-jXImCIb4.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'zustand';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { C as ClientBinaryOpcode, B as BinaryOpcode } from './FoxgloveServer-
|
|
2
|
+
import { C as ClientBinaryOpcode, B as BinaryOpcode } from './FoxgloveServer-Ck4XVALC.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
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { W as ExternalTokenizer, R as styleTags, T as tags, X as LRParser, a0 as LocalTokenGroup, U as LRLanguage, N as indentNodeProp, O as continuedIndent, a1 as flatIndent, a2 as delimitedIndent, Q as foldNodeProp, a3 as foldInside, V as LanguageSupport } from './index-BhPL--g_.js';
|
|
3
3
|
import './logger-CgxnhrWP.js';
|
|
4
|
-
import './depth-
|
|
5
|
-
import './comlink-
|
|
4
|
+
import './depth-Db-UjzPs.js';
|
|
5
|
+
import './comlink-jf8bdrAf.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zustand';
|
|
8
8
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-
|
|
9
|
+
import './protobuf-C2hFflNu.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-Ck4XVALC.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-DDWtWavo.js';
|
|
16
16
|
import 'react-dnd';
|
|
17
17
|
import 'react-dnd-html5-backend';
|
|
18
18
|
import './i18next-17tp0Ngf.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { W as ExternalTokenizer, a4 as ContextTracker, R as styleTags, T as tags, X as LRParser, a0 as LocalTokenGroup, a5 as snippetCompletion, $ as syntaxTree, U as LRLanguage, N as indentNodeProp, O as continuedIndent, a1 as flatIndent, a2 as delimitedIndent, Q as foldNodeProp, a3 as foldInside, V as LanguageSupport, Y as ifNotIn, Z as completeFromList, a6 as IterMode, a7 as NodeWeakMap } from './index-BhPL--g_.js';
|
|
3
3
|
import './logger-CgxnhrWP.js';
|
|
4
|
-
import './depth-
|
|
5
|
-
import './comlink-
|
|
4
|
+
import './depth-Db-UjzPs.js';
|
|
5
|
+
import './comlink-jf8bdrAf.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zustand';
|
|
8
8
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-
|
|
9
|
+
import './protobuf-C2hFflNu.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-Ck4XVALC.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-DDWtWavo.js';
|
|
16
16
|
import 'react-dnd';
|
|
17
17
|
import 'react-dnd-html5-backend';
|
|
18
18
|
import './i18next-17tp0Ngf.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { R as styleTags, T as tags, U as LRLanguage, N as indentNodeProp, O as continuedIndent, Q as foldNodeProp, a3 as foldInside, ac as defineCSSCompletionSource, V as LanguageSupport, X as LRParser, W as ExternalTokenizer } from './index-BhPL--g_.js';
|
|
3
3
|
import './logger-CgxnhrWP.js';
|
|
4
|
-
import './depth-
|
|
5
|
-
import './comlink-
|
|
4
|
+
import './depth-Db-UjzPs.js';
|
|
5
|
+
import './comlink-jf8bdrAf.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zustand';
|
|
8
8
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-
|
|
9
|
+
import './protobuf-C2hFflNu.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-Ck4XVALC.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-DDWtWavo.js';
|
|
16
16
|
import 'react-dnd';
|
|
17
17
|
import 'react-dnd-html5-backend';
|
|
18
18
|
import './i18next-17tp0Ngf.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { N as indentNodeProp, O as continuedIndent, Q as foldNodeProp, R as styleTags, T as tags, U as LRLanguage, V as LanguageSupport, W as ExternalTokenizer, X as LRParser, Y as ifNotIn, Z as completeFromList, $ as syntaxTree } from './index-BhPL--g_.js';
|
|
3
3
|
import './logger-CgxnhrWP.js';
|
|
4
|
-
import './depth-
|
|
5
|
-
import './comlink-
|
|
4
|
+
import './depth-Db-UjzPs.js';
|
|
5
|
+
import './comlink-jf8bdrAf.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zustand';
|
|
8
8
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-
|
|
9
|
+
import './protobuf-C2hFflNu.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-Ck4XVALC.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-DDWtWavo.js';
|
|
16
16
|
import 'react-dnd';
|
|
17
17
|
import 'react-dnd-html5-backend';
|
|
18
18
|
import './i18next-17tp0Ngf.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { a4 as ContextTracker, W as ExternalTokenizer, R as styleTags, T as tags, X as LRParser, U as LRLanguage, N as indentNodeProp, Q as foldNodeProp, ad as bracketMatchingHandle, V as LanguageSupport, a8 as EditorView, $ as syntaxTree, a9 as EditorSelection } from './index-BhPL--g_.js';
|
|
3
3
|
import './logger-CgxnhrWP.js';
|
|
4
|
-
import './depth-
|
|
5
|
-
import './comlink-
|
|
4
|
+
import './depth-Db-UjzPs.js';
|
|
5
|
+
import './comlink-jf8bdrAf.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zustand';
|
|
8
8
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-
|
|
9
|
+
import './protobuf-C2hFflNu.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-Ck4XVALC.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-DDWtWavo.js';
|
|
16
16
|
import 'react-dnd';
|
|
17
17
|
import 'react-dnd-html5-backend';
|
|
18
18
|
import './i18next-17tp0Ngf.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { a8 as EditorView, a9 as EditorSelection, U as LRLanguage, R as styleTags, T as tags, N as indentNodeProp, a2 as delimitedIndent, Q as foldNodeProp, V as LanguageSupport, X as LRParser, $ as syntaxTree, aa as html, ab as parseMixed, W as ExternalTokenizer } from './index-BhPL--g_.js';
|
|
3
3
|
import './logger-CgxnhrWP.js';
|
|
4
|
-
import './depth-
|
|
5
|
-
import './comlink-
|
|
4
|
+
import './depth-Db-UjzPs.js';
|
|
5
|
+
import './comlink-jf8bdrAf.js';
|
|
6
6
|
import 'react';
|
|
7
7
|
import 'zustand';
|
|
8
8
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-
|
|
9
|
+
import './protobuf-C2hFflNu.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-Ck4XVALC.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-DDWtWavo.js';
|
|
16
16
|
import 'react-dnd';
|
|
17
17
|
import 'react-dnd-html5-backend';
|
|
18
18
|
import './i18next-17tp0Ngf.js';
|