@luxonis/visualizer-protobuf 3.1.3 → 3.1.4

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 (53) hide show
  1. package/dist/{FoxgloveServer-B98MHUu6.js → FoxgloveServer-Z9mJitqG.js} +1 -1
  2. package/dist/{communicator-Bzkx3Qfr.js → communicator-t3uE4_km.js} +1 -1
  3. package/dist/{depth-DlC6A3Te.js → depth-Ct_zm8Rq.js} +92 -92
  4. package/dist/{deserialization.worker-B0hsW-Sx.js → deserialization.worker-DvXlnMzb.js} +3 -3
  5. package/dist/{foxglove-protocol-yHdoBNaD.js → foxglove-protocol-DTBud3kT.js} +1 -1
  6. package/dist/{index-CAgbkwe6.js → index-1D5S7eR3.js} +88 -23
  7. package/dist/{index-BKgVLcTw.js → index-4r5XO2hY.js} +5 -5
  8. package/dist/{index-Dqm1x8G2.js → index-BEfrzxM3.js} +1 -1
  9. package/dist/{index-deVCx3vy.js → index-BWUFvnnr.js} +1383 -144
  10. package/dist/{index-yMt81xls.js → index-C-rWRmE5.js} +5 -5
  11. package/dist/{index-Bt_uFFS7.js → index-CEJd4Yuv.js} +5 -5
  12. package/dist/{index-B7pVdy1y.js → index-C_Rypho5.js} +7 -7
  13. package/dist/{index-TLrt2q2Z.js → index-CfSbEMmb.js} +5 -5
  14. package/dist/{index-Bk_C_6fe.js → index-CrogdRc3.js} +5 -5
  15. package/dist/{index-BY-ER3Px.js → index-CtcRTdcC.js} +5 -5
  16. package/dist/{index-yLs0wQ5Z.js → index-D4NfQEba.js} +5 -5
  17. package/dist/{index-CZgHF8IG.js → index-DRTvKm-0.js} +5 -5
  18. package/dist/{index-BWEGuIck.js → index-DUpgA7e6.js} +5 -5
  19. package/dist/{index-B4QJRCC8.js → index-DXHvsHzl.js} +5 -5
  20. package/dist/{index-CUAKp56t.js → index-Dgmw82OA.js} +5 -5
  21. package/dist/{index-DZMcM1se.js → index-DnPkbSwI.js} +5 -5
  22. package/dist/{index-DHaV44R1.js → index-DpfKCYgk.js} +5 -5
  23. package/dist/{index-CoSfKtTh.js → index-DrXETBmj.js} +5 -5
  24. package/dist/{index-BIOeAcXP.js → index-I7fQaE0_.js} +5 -5
  25. package/dist/{index-BkjTw3VS.js → index-Xp6XXYGL.js} +5 -5
  26. package/dist/{index-D0csatt1.js → index-Z2_pOHuN.js} +5 -5
  27. package/dist/index.js +5 -5
  28. package/dist/lib/src/protobuf.generated/EncodedFrame.js +1 -1
  29. package/dist/lib/src/protobuf.generated/EncodedFrame.js.map +1 -1
  30. package/dist/lib/src/protobuf.generated/Event.js +1 -1
  31. package/dist/lib/src/protobuf.generated/Event.js.map +1 -1
  32. package/dist/lib/src/protobuf.generated/IMUData.js +1 -1
  33. package/dist/lib/src/protobuf.generated/IMUData.js.map +1 -1
  34. package/dist/lib/src/protobuf.generated/ImageAnnotations.js +1 -1
  35. package/dist/lib/src/protobuf.generated/ImageAnnotations.js.map +1 -1
  36. package/dist/lib/src/protobuf.generated/ImgDetections.js +1 -1
  37. package/dist/lib/src/protobuf.generated/ImgDetections.js.map +1 -1
  38. package/dist/lib/src/protobuf.generated/ImgFrame.js +1 -1
  39. package/dist/lib/src/protobuf.generated/ImgFrame.js.map +1 -1
  40. package/dist/lib/src/protobuf.generated/PointCloudData.js +1 -1
  41. package/dist/lib/src/protobuf.generated/PointCloudData.js.map +1 -1
  42. package/dist/lib/src/protobuf.generated/RGBDData.js +1 -1
  43. package/dist/lib/src/protobuf.generated/RGBDData.js.map +1 -1
  44. package/dist/lib/src/protobuf.generated/SegmentationMask.js +1 -1
  45. package/dist/lib/src/protobuf.generated/SegmentationMask.js.map +1 -1
  46. package/dist/lib/src/protobuf.generated/SpatialImgDetections.js +1 -1
  47. package/dist/lib/src/protobuf.generated/SpatialImgDetections.js.map +1 -1
  48. package/dist/lib/src/protobuf.generated/common.js +1 -1
  49. package/dist/lib/src/protobuf.generated/common.js.map +1 -1
  50. package/dist/{protobuf-Be0G3NFz.js → protobuf-BQPUfAzh.js} +8 -8
  51. package/dist/{worker-NFznpx6V.js → worker-ChcSJthL.js} +3 -3
  52. package/dist/{worker-0Q6os6Ck.js → worker-IhN8LKNl.js} +4 -4
  53. 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-BQPUfAzh.js';
3
3
  import require$$0 from 'ms';
4
4
 
5
5
  var eventemitter3 = {exports: {}};
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { _ as _classPrivateFieldLooseBase, p as protobufsBySchema, b as _objectSpread2, a as _classPrivateFieldLooseKey } from './protobuf-Be0G3NFz.js';
2
+ import { _ as _classPrivateFieldLooseBase, p as protobufsBySchema, b as _objectSpread2, a as _classPrivateFieldLooseKey } from './protobuf-BQPUfAzh.js';
3
3
  import { r as recordToDataView } from './encoding-jXImCIb4.js';
4
4
  import { L as Logger } from './logger-Bqy1nuLj.js';
5
5
 
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { w as wrap, t as transfer } from './comlink-jf8bdrAf.js';
3
- import { f as commonjsGlobal, _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, g as getDefaultExportFromCjs, b as _objectSpread2, T as Type } from './protobuf-Be0G3NFz.js';
3
+ import { f as commonjsGlobal, _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, g as getDefaultExportFromCjs, b as _objectSpread2, T as Type } from './protobuf-BQPUfAzh.js';
4
4
  import { L as Logger$2 } from './logger-Bqy1nuLj.js';
5
5
  import { useContext, useRef, createContext, useReducer, useLayoutEffect, useState, useCallback } from 'react';
6
6
  import 'zustand';
@@ -543,90 +543,6 @@ _Logger = Logger;
543
543
  Logger.default = new _Logger("");
544
544
  var Logger$1 = Logger.default;
545
545
 
546
- // This Source Code Form is subject to the terms of the Mozilla Public
547
- // License, v2.0. If a copy of the MPL was not distributed with this
548
- // file, You can obtain one at http://mozilla.org/MPL/2.0/
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
546
  const decodingErrorDefinitions = {
631
547
  UnsupportedTopic: {
632
548
  message: "This topic is not supported by the current decoder."
@@ -2883,7 +2799,7 @@ function useJsonTreeTheme() {
2883
2799
  }
2884
2800
  const TAB_PANEL_TYPE = "Tab";
2885
2801
 
2886
- const log$1 = Logger$1.getLogger("src/index.ts");
2802
+ const log$2 = Logger$1.getLogger("src/index.ts");
2887
2803
 
2888
2804
  // given a panel type, create a unique id for a panel
2889
2805
  // with the type embedded within the id
@@ -3098,13 +3014,13 @@ const validateTabPanelConfig = config => {
3098
3014
  }
3099
3015
  if (!Array.isArray(config.tabs) || typeof config.activeTabIdx !== "number") {
3100
3016
  const error = new Error("A non-Tab panel config is being operated on as if it were a Tab panel.");
3101
- log$1.info(`Invalid Tab panel config: ${error.message}`, config);
3017
+ log$2.info(`Invalid Tab panel config: ${error.message}`, config);
3102
3018
  reportError(error);
3103
3019
  return false;
3104
3020
  }
3105
3021
  if (config.activeTabIdx >= config.tabs.length) {
3106
3022
  const error = new Error("A Tab panel has an activeTabIdx for a nonexistent tab.");
3107
- log$1.info(`Invalid Tab panel config: ${error.message}`, config);
3023
+ log$2.info(`Invalid Tab panel config: ${error.message}`, config);
3108
3024
  reportError(error);
3109
3025
  return false;
3110
3026
  }
@@ -3376,7 +3292,7 @@ function toggleSelectedPanel(panelId, containingTabId, configById, selectedPanel
3376
3292
  * part of a saved "layout") used by the current workspace.
3377
3293
  */
3378
3294
 
3379
- const log = Logger$1.getLogger("src/index.ts");
3295
+ const log$1 = Logger$1.getLogger("src/index.ts");
3380
3296
  const CurrentLayoutContext = /*#__PURE__*/createContext(undefined);
3381
3297
  CurrentLayoutContext.displayName = "CurrentLayoutContext";
3382
3298
  function usePanelMosaicId() {
@@ -3391,7 +3307,7 @@ function useCurrentLayoutSelector(selector) {
3391
3307
 
3392
3308
  // Catch locations using unstable function selectors
3393
3309
  useShouldNotChangeOften(selector, () => {
3394
- log.warn("useCurrentLayoutSelector is changing frequently. Rewrite your selector as a stable function.");
3310
+ log$1.warn("useCurrentLayoutSelector is changing frequently. Rewrite your selector as a stable function.");
3395
3311
  });
3396
3312
  const state = useRef(undefined);
3397
3313
  if (!state.current || selector !== state.current.selector) {
@@ -3711,6 +3627,91 @@ sendNotification.expectCalledDuringTest = () => {
3711
3627
  throw new Error("Should be overriden in setupTestFramework.ts");
3712
3628
  };
3713
3629
 
3630
+ // This Source Code Form is subject to the terms of the Mozilla Public
3631
+ // License, v2.0. If a copy of the MPL was not distributed with this
3632
+ // file, You can obtain one at http://mozilla.org/MPL/2.0/
3633
+ const log = Logger$1.getLogger("src/index.ts");
3634
+ /**
3635
+ * Values of the contants below are a (more or less) informed guesses and not guaranteed to be accurate.
3636
+ */
3637
+ const COMPRESSED_POINTER_SIZE = 4; // Pointers use 4 bytes (also on 64-bit systems) due to pointer compression
3638
+ const OBJECT_BASE_SIZE = 3 * COMPRESSED_POINTER_SIZE; // 3 compressed pointers
3639
+ // Arrays have an additional length property (1 pointer) and a backing store header (2 pointers)
3640
+ // See https://stackoverflow.com/a/70550693.
3641
+ const ARRAY_BASE_SIZE = OBJECT_BASE_SIZE + 3 * COMPRESSED_POINTER_SIZE;
3642
+ const TYPED_ARRAY_BASE_SIZE = 25 * COMPRESSED_POINTER_SIZE; // byteLength, byteOffset, ..., see https://stackoverflow.com/a/45808835
3643
+ const SMALL_INTEGER_SIZE = COMPRESSED_POINTER_SIZE; // Small integers (up to 31 bits), pointer tagging
3644
+ const HEAP_NUMBER_SIZE = 8 + 2 * COMPRESSED_POINTER_SIZE; // 4-byte map pointer + 8-byte payload + property pointer
3645
+ const MAX_NUM_FAST_PROPERTIES = 1020;
3646
+ /**
3647
+ * Estimate the size in bytes of an arbitrary object or primitive.
3648
+ * @param obj Object or primitive to estimate the size for
3649
+ * @returns Estimated size in bytes
3650
+ */
3651
+ function estimateObjectSize(obj) {
3652
+ // catches null and undefined
3653
+ // typeof null == "object"
3654
+ if (obj == undefined) {
3655
+ return SMALL_INTEGER_SIZE;
3656
+ }
3657
+ switch (typeof obj) {
3658
+ case "undefined":
3659
+ case "boolean": {
3660
+ return SMALL_INTEGER_SIZE;
3661
+ }
3662
+ case "number": {
3663
+ return Number.isInteger(obj) ? SMALL_INTEGER_SIZE : HEAP_NUMBER_SIZE;
3664
+ }
3665
+ case "bigint": {
3666
+ return HEAP_NUMBER_SIZE;
3667
+ }
3668
+ case "string": {
3669
+ // The string length is rounded up to the next multiple of 4.
3670
+ return COMPRESSED_POINTER_SIZE + OBJECT_BASE_SIZE + Math.ceil(obj.length / 4) * 4;
3671
+ }
3672
+ case "object": {
3673
+ if (Array.isArray(obj)) {
3674
+ return (COMPRESSED_POINTER_SIZE +
3675
+ ARRAY_BASE_SIZE +
3676
+ Object.values(obj).reduce((acc, val) => acc + estimateObjectSize(val), 0));
3677
+ }
3678
+ else if (ArrayBuffer.isView(obj)) {
3679
+ return TYPED_ARRAY_BASE_SIZE + obj.byteLength;
3680
+ }
3681
+ else if (obj instanceof Set) {
3682
+ return (COMPRESSED_POINTER_SIZE +
3683
+ OBJECT_BASE_SIZE +
3684
+ Array.from(obj.values()).reduce((acc, val) => acc + estimateObjectSize(val), 0));
3685
+ }
3686
+ else if (obj instanceof Map) {
3687
+ return (COMPRESSED_POINTER_SIZE +
3688
+ OBJECT_BASE_SIZE +
3689
+ Array.from(obj.entries()).reduce((acc, [key, val]) => acc + estimateObjectSize(key) + estimateObjectSize(val), 0));
3690
+ }
3691
+ let propertiesSize = 0;
3692
+ const numProps = Object.keys(obj).length;
3693
+ if (numProps > MAX_NUM_FAST_PROPERTIES) {
3694
+ // If there are too many properties, V8 stores Objects in dictionary mode (slow properties)
3695
+ // with each object having a self-contained dictionary. This dictionary contains the key, value
3696
+ // and details of properties. Below we estimate the size of this additional dictionary. Formula
3697
+ // adapted from
3698
+ // medium.com/@bpmxmqd/v8-engine-jsobject-structure-analysis-and-memory-optimization-ideas-be30cfcdcd16
3699
+ const propertiesDictSize = 16 + 5 * 8 + 2 ** Math.ceil(Math.log2((numProps + 2) * 1.5)) * 3 * 4;
3700
+ // In return, properties are no longer stored in the properties array, so we subtract that.
3701
+ propertiesSize = propertiesDictSize - numProps * COMPRESSED_POINTER_SIZE;
3702
+ }
3703
+ const valuesSize = Object.values(obj).reduce((acc, val) => acc + estimateObjectSize(val), 0);
3704
+ return OBJECT_BASE_SIZE + propertiesSize + valuesSize;
3705
+ }
3706
+ case "symbol":
3707
+ case "function": {
3708
+ throw new Error(`Can't estimate size of type '${typeof obj}'`);
3709
+ }
3710
+ }
3711
+ log.error(`Can't estimate size of type '${typeof obj}'`);
3712
+ return SMALL_INTEGER_SIZE;
3713
+ }
3714
+
3714
3715
  // This Source Code Form is subject to the terms of the Mozilla Public
3715
3716
  // License, v2.0. If a copy of the MPL was not distributed with this
3716
3717
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
@@ -3723,7 +3724,6 @@ sendNotification.expectCalledDuringTest = () => {
3723
3724
  // This source code is licensed under the Apache License, Version 2.0,
3724
3725
  // found at http://www.apache.org/licenses/LICENSE-2.0
3725
3726
  // You may not use this file except in compliance with the License.
3726
-
3727
3727
  Logger$1.getLogger("src/index.ts");
3728
3728
 
3729
3729
  // This Source Code Form is subject to the terms of the Mozilla Public
@@ -3938,4 +3938,4 @@ function getDistanceFromDepthDataForOffset(depthData, width, height, xOffset, yO
3938
3938
  return sum / count;
3939
3939
  }
3940
3940
 
3941
- export { deserializeDepthFrame as $, AppError as A, inlineTabPanelLayouts as B, getAllPanelIds as C, DEFAULT_TAB_PANEL_CONFIG as D, getConfigsForNestedPanelsInsideTab as E, reorderTabWithinTabPanel as F, moveTabBetweenTabPanels as G, isTabPanelConfig as H, addPanelToTab as I, createAddUpdates as J, filterMap as K, Logger$1 as L, uniq as M, useShallowMemo as N, CurrentLayoutContext as O, MessageOrderTracker as P, AppConfigurationContext as Q, DecodingError as R, getDistanceFromDepthDataForOffset as S, TAB_PANEL_TYPE as T, parseMessage as U, fromMillis as V, DecoderRuntimeError as W, parsePixelFormat as X, UnsupportedTopicError as Y, NotInSecureContextError as Z, EncodedStreamNotSupportedError as _, baseEach as a, isSymbol as a0, toString as a1, keys as a2, getSymbols as a3, stubArray as a4, arrayPush as a5, baseGetAllKeys as a6, getAllKeys as a7, arrayMap as a8, useCurrentLayoutActions as a9, useCurrentLayoutSelector as aa, usePanelMosaicId as ab, noop as ac, useSelectedPanels as ad, useAppConfiguration as ae, useJsonTreeTheme as af, baseFlatten as b, createDecodingError as c, dist as d, estimateObjectSize as e, baseIteratee as f, baseDifference as g, getTag as h, baseKeys as i, baseIsEqual as j, castPath as k, baseGet as l, hasIn as m, shallowequal$1 as n, getPanelIdsInsideTabPanels as o, getPanelTypeFromId as p, removePanelFromTabPanel as q, reportError as r, sendNotification as s, toKey as t, useGuaranteedContext as u, getPanelIdForType as v, getPathFromNode as w, updateTabPanelLayout as x, getSaveConfigsPayloadForAddedPanel as y, replaceAndRemovePanels as z };
3941
+ export { deserializeDepthFrame 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, DecodingError as Q, getDistanceFromDepthDataForOffset as R, parseMessage as S, TAB_PANEL_TYPE as T, estimateObjectSize as U, fromMillis as V, DecoderRuntimeError as W, parsePixelFormat as X, UnsupportedTopicError as Y, NotInSecureContextError as Z, EncodedStreamNotSupportedError as _, baseEach as a, isSymbol as a0, toString as a1, keys as a2, getSymbols as a3, stubArray as a4, arrayPush as a5, baseGetAllKeys as a6, getAllKeys as a7, arrayMap as a8, useCurrentLayoutActions as a9, useCurrentLayoutSelector as aa, usePanelMosaicId as ab, noop as ac, useSelectedPanels as ad, useAppConfiguration as ae, useJsonTreeTheme as af, baseFlatten as b, createDecodingError as c, dist as d, baseIteratee 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,8 +1,8 @@
1
1
  'use client';
2
- import { b as _objectSpread2, P as PointsAnnotationType, p as protobufsBySchema, T as Type, h as Profile } from './protobuf-Be0G3NFz.js';
2
+ import { b as _objectSpread2, P as PointsAnnotationType, p as protobufsBySchema, T as Type, h as Profile } from './protobuf-BQPUfAzh.js';
3
3
  import { e as expose } from './comlink-jf8bdrAf.js';
4
- import { t as typescript } from './index-Dqm1x8G2.js';
5
- import { U as parseMessage, e as estimateObjectSize, V as fromMillis, W as DecoderRuntimeError, d as dist, X as parsePixelFormat, Y as UnsupportedTopicError, Z as NotInSecureContextError, _ as EncodedStreamNotSupportedError, $ as deserializeDepthFrame } from './depth-DlC6A3Te.js';
4
+ import { t as typescript } from './index-BEfrzxM3.js';
5
+ import { S as parseMessage, U as estimateObjectSize, V as fromMillis, W as DecoderRuntimeError, d as dist, X as parsePixelFormat, Y as UnsupportedTopicError, Z as NotInSecureContextError, _ as EncodedStreamNotSupportedError, $ as deserializeDepthFrame } from './depth-Ct_zm8Rq.js';
6
6
  import { L as Logger } from './logger-Bqy1nuLj.js';
7
7
  import { i as isCapableOfEncodedStream } from './encoding-jXImCIb4.js';
8
8
  import 'react';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { C as ClientBinaryOpcode, B as BinaryOpcode } from './FoxgloveServer-B98MHUu6.js';
2
+ import { C as ClientBinaryOpcode, B as BinaryOpcode } from './FoxgloveServer-Z9mJitqG.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
@@ -2,12 +2,12 @@
2
2
  import * as React from 'react';
3
3
  import React__default, { useReducer, useRef, useCallback, useLayoutEffect, Component, useContext, useState, useEffect, createContext, forwardRef, useMemo, Profiler, createElement, cloneElement, memo, StrictMode } from 'react';
4
4
  import { createRoot } from 'react-dom/client';
5
- import { a0 as isSymbol, a1 as toString, a2 as keys, a3 as getSymbols$1, a4 as stubArray, a5 as arrayPush, a6 as baseGetAllKeys, h as getTag, a7 as getAllKeys, l as baseGet, f as baseIteratee, k as castPath, t as toKey, a8 as arrayMap$1, a9 as useCurrentLayoutActions, aa as useCurrentLayoutSelector, r as reportError, A as AppError, ab as usePanelMosaicId, ac as noop$4, L as Logger, ad as useSelectedPanels, p as getPanelTypeFromId, N as useShallowMemo, T as TAB_PANEL_TYPE, K as filterMap, d as dist$2, ae as useAppConfiguration, af as useJsonTreeTheme } from './depth-DlC6A3Te.js';
5
+ import { a0 as isSymbol, a1 as toString, a2 as keys, a3 as getSymbols$1, a4 as stubArray, a5 as arrayPush, a6 as baseGetAllKeys, g as getTag, a7 as getAllKeys, k as baseGet, e as baseIteratee, j as castPath, t as toKey, a8 as arrayMap$1, L as Logger, a9 as useCurrentLayoutActions, aa as useCurrentLayoutSelector, r as reportError, A as AppError, ab as usePanelMosaicId, ac as noop$4, ad as useSelectedPanels, o as getPanelTypeFromId, M as useShallowMemo, T as TAB_PANEL_TYPE, J as filterMap, d as dist$2, ae as useAppConfiguration, af as useJsonTreeTheme } from './depth-Ct_zm8Rq.js';
6
6
  import { createStore, useStore } from 'zustand';
7
- import { g as generateUtilityClass, c as createAggregator, f as flatRest, b as baseSet, A as AnalyticsContext, m as murmur2, P as PropTypes, _ as _objectWithoutPropertiesLoose$1, E as ErrorDisplay, S as Stack$1, a as makeStyles$1, u as useTranslation, d as usePanelCatalog, e as EmptyState, i as isEmpty, h as PanelContext, j as PanelCatalogContext, k as usePanelStateStore, l as difference, n as usePanelContext, o as useMessagePipeline, v as v4, p as useDefaultPanelTitle, q as useHoverValue, r as useSetHoverValue, s as useClearHoverValue, t as useMessagePipelineGetter, w as usePanelSettingsTreeUpdate, x as PlayerCapabilities, y as assertNever, z as PlayerPresence, B as isEqual, C as AppEvent, D as isDesktopApp, F as createTheme, G as propTypesExports, H as DEFAULT_CAMERA_STATE$1, I as format$1, J as stringType, K as serializeError, L as stringify$1, M as createIntl, N as createIntlCache, O as useAnalytics } from './index-deVCx3vy.js';
8
- import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, d as _objectWithoutProperties, e as _extends$1, f as commonjsGlobal, g as getDefaultExportFromCjs, b as _objectSpread2, i as getAugmentedNamespace, j as _asyncIterator } from './protobuf-Be0G3NFz.js';
7
+ import { g as generateUtilityClass, c as createAggregator, f as flatRest, b as baseSet, A as AnalyticsContext, m as murmur2, P as PropTypes, _ as _objectWithoutPropertiesLoose$1, E as ErrorDisplay, S as Stack$1, a as makeStyles$1, u as useTranslation, d as usePanelCatalog, i as isEmpty, e as PanelContext, h as PanelCatalogContext, j as usePanelStateStore, k as difference, l as usePanelContext, n as useMessagePipeline, v as v4, o as useDefaultPanelTitle, p as useHoverValue, q as useSetHoverValue, r as useClearHoverValue, s as useMessagePipelineGetter, t as usePanelSettingsTreeUpdate, w as PlayerCapabilities, x as assertNever, y as PlayerPresence, z as isEqual, B as AppEvent, C as isDesktopApp, D as createTheme, F as propTypesExports, G as format$1, H as stringType, I as serializeError, J as stringify$1, K as createIntl, L as createIntlCache, M as useAnalytics } from './index-BWUFvnnr.js';
8
+ import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey, d as _objectWithoutProperties, e as _extends$1, f as commonjsGlobal, g as getDefaultExportFromCjs, b as _objectSpread2, i as getAugmentedNamespace, j as _asyncIterator } from './protobuf-BQPUfAzh.js';
9
9
  import { MosaicDragType, MosaicContext, MosaicWindowContext, getOtherBranch, getNodeAtPath } from 'react-mosaic-component';
10
- import { Link, Button, alpha, IconButton, Card, CardActionArea, CardMedia, CardContent, Typography, Container, Tooltip, Fade, ListItem, ListItemButton, ListItemText, List, TextField, InputAdornment, Popper, Grow, Paper, ClickAwayListener, Menu, MenuItem, Divider, buttonClasses, Backdrop, Chip, useTheme, inputBaseClasses, autocompleteClasses, inputClasses, Checkbox, dialogActionsClasses, filledInputClasses, inputAdornmentClasses, listSubheaderClasses, selectClasses, tableCellClasses, ThemeProvider as ThemeProvider$1, tabsClasses as tabsClasses$1, tabClasses, Tabs, Tab, ListItemIcon } from '@mui/material';
10
+ import { Link, Button, alpha, IconButton, Typography, Card, CardActionArea, CardMedia, CardContent, Container, Tooltip, Fade, ListItem, ListItemButton, ListItemText, List, TextField, InputAdornment, Popper, Grow, Paper, ClickAwayListener, Menu, MenuItem, Divider, buttonClasses, Backdrop, Chip, useTheme, inputBaseClasses, autocompleteClasses, inputClasses, Checkbox, dialogActionsClasses, filledInputClasses, inputAdornmentClasses, listSubheaderClasses, selectClasses, tableCellClasses, ThemeProvider as ThemeProvider$1, tabsClasses as tabsClasses$1, tabClasses, Tabs, Tab, ListItemIcon } from '@mui/material';
11
11
  import { a as assignValue, b as baseAssignValue, t as tinycolor, c as t$1, i as instance } from './i18next-17tp0Ngf.js';
12
12
  import '@mui/icons-material/FullscreenExit';
13
13
  import ChevronRightIcon from '@mui/icons-material/ChevronRight';
@@ -18,10 +18,10 @@ import { useDrag, useDrop } from 'react-dnd';
18
18
  import { h as isObject, r as root, S as Symbol$1, k as isObjectLike, A as nodeUtil, B as baseUnary, d as isBuffer, v as Stack, i as isArray, b as baseRest } from './isArrayLikeObject-n9ytTioB.js';
19
19
  import ReactDOM__default from 'react-dom';
20
20
  import { c as copyObject, k as keysIn, g as getPrototype, a as cloneArrayBuffer, b as cloneTypedArray, e as copyArray, f as cloneBuffer, i as initCloneObject, h as isPlainObject$1, B as Box3, V as Vector3, I as InstancedBufferGeometry, F as Float32BufferAttribute, j as InstancedInterleavedBuffer, l as InterleavedBufferAttribute, W as WireframeGeometry, S as Sphere, U as UniformsLib, m as Vector2, n as ShaderLib, o as UniformsUtils, p as ShaderMaterial, q as Vector4, M as Matrix4, L as Line3, r as Mesh, s as MathUtils, O as Object3D, C as Color, t as rgbToThreeColor, u as stringToRgba, v as makeRgba, w as MeshStandardMaterial, R as ReplaceStencilOp, N as NotEqualStencilFunc, D as DoubleSide, P as PointsMaterial, x as rgbaToCssString, y as autoSelectColorSettings, z as colorModeSettingsFields, A as PlaneGeometry, E as DataTexture, G as UVMapping, H as ClampToEdgeWrapping, J as NearestFilter, K as LinearFilter, Q as FS_SRGB_TO_LINEAR, T as SRGBColorSpace, X as LinearSRGBColorSpace, Y as rgbaToLinear, Z as RedFormat, _ as RGBAFormat, $ as getColorConverter, a0 as FloatType, a1 as UnsignedByteType, a2 as NEEDS_MIN_MAX$1, a3 as InstancedMesh, a4 as CylinderGeometry, a5 as ConeGeometry, a6 as DataTextureLoader, a7 as LinearMipmapLinearFilter, a8 as Loader, a9 as LoaderUtils, aa as FileLoader, ab as MeshBasicMaterial, ac as Scene, ad as TextureLoader, ae as AnimationClip, af as VectorKeyframeTrack, ag as QuaternionKeyframeTrack, ah as MeshLambertMaterial, ai as MeshPhongMaterial, aj as FrontSide, ak as PerspectiveCamera, al as OrthographicCamera, am as AmbientLight, an as SpotLight, ao as PointLight, ap as DirectionalLight, aq as BufferGeometry, ar as Group, as as Quaternion, at as Bone, au as LineBasicMaterial, av as SkinnedMesh, aw as Line, ax as LineSegments, ay as RepeatWrapping, az as Skeleton, aA as BufferAttribute, aB as TrianglesDrawMode, aC as TriangleFanDrawMode, aD as TriangleStripDrawMode, aE as MeshPhysicalMaterial, aF as ImageBitmapLoader, aG as InterleavedBuffer, aH as Material, aI as PropertyBinding, aJ as LineLoop, aK as Points, aL as InterpolateLinear, aM as ColorManagement, aN as NearestMipmapNearestFilter, aO as LinearMipmapNearestFilter, aP as NearestMipmapLinearFilter, aQ as MirroredRepeatWrapping, aR as InterpolateDiscrete, aS as Texture, aT as NumberKeyframeTrack, aU as Interpolant, aV as EdgesGeometry, aW as LoadingManager, aX as stringToRgb, aY as getLuminance, aZ as Euler, a_ as vec3TupleApproxEquals, a$ as decodeCompressedImageToBitmap, b0 as CanvasTexture, b1 as Shape, b2 as SRGBToLinear, b3 as ShapeGeometry, b4 as DynamicDrawUsage, b5 as ShaderChunk, b6 as IMAGE_DEFAULT_COLOR_MODE_SETTINGS, b7 as merge$1, b8 as colorHasTransparency, b9 as StaticDrawUsage, ba as RawShaderMaterial, bb as GLSL3, bc as colorFieldComputedPrefix, bd as getRotationTo, be as SphereGeometry, bf as rgbaGradient, bg as InstancedBufferAttribute, bh as BoxGeometry, bi as DARK_OUTLINE, bj as LIGHT_OUTLINE, bk as CircleGeometry, bl as LineDashedMaterial, bm as GreaterDepth, bn as EventDispatcher$1, bo as Plane, bp as Raycaster, bq as WebGLRenderTarget, br as THREE$1, bs as Spherical, bt as WebGLRenderer, bu as NoToneMapping, bv as VSMShadowMap, bw as HemisphereLight } from './decodeImage-DseBx4N0.js';
21
- import { t as typescript } from './index-Dqm1x8G2.js';
21
+ import { t as typescript } from './index-BEfrzxM3.js';
22
22
  import { CacheProvider } from '@emotion/react';
23
23
  import '@mui/material/styles/createTypography';
24
- import { E as EventEmitter } from './FoxgloveServer-B98MHUu6.js';
24
+ import { E as EventEmitter } from './FoxgloveServer-Z9mJitqG.js';
25
25
  import require$$1$3 from 'color';
26
26
  import require$$2$1 from 'lodash.curry';
27
27
  import OpenInNewIcon from '@mui/icons-material/OpenInNew';
@@ -29,7 +29,7 @@ import SettingsIcon from '@mui/icons-material/Settings';
29
29
  import './comlink-jf8bdrAf.js';
30
30
  import './logger-Bqy1nuLj.js';
31
31
  import './utils-DmlHZWuo.js';
32
- import './foxglove-protocol-yHdoBNaD.js';
32
+ import './foxglove-protocol-DTBud3kT.js';
33
33
  import 'react-dnd-html5-backend';
34
34
  import '@mui/system/colorManipulator';
35
35
  import 'object-assign';
@@ -3878,7 +3878,7 @@ const useIconContext = () => {
3878
3878
  return context !== null && context !== void 0 ? context : IconDirectionContextDefaultValue;
3879
3879
  };
3880
3880
 
3881
- const useStyles$f = __styles({
3881
+ const useStyles$g = __styles({
3882
3882
  "root": {
3883
3883
  "mc9l5x": "f1w7gpdv",
3884
3884
  "Bg96gwp": "fez10in"
@@ -3897,7 +3897,7 @@ const useIconState = (props, options) => {
3897
3897
  title: undefined,
3898
3898
  fill: primaryFill
3899
3899
  };
3900
- const styles = useStyles$f();
3900
+ const styles = useStyles$g();
3901
3901
  const iconContext = useIconContext();
3902
3902
  state.className = mergeClasses(styles.root, (options === null || options === void 0 ? void 0 : options.flipInRtl) && (iconContext === null || iconContext === void 0 ? void 0 : iconContext.textDirection) === 'rtl' && styles.rtl, state.className);
3903
3903
  if (title) {
@@ -4691,6 +4691,21 @@ var useLongPress = function (callback, _a) {
4691
4691
  };
4692
4692
  };
4693
4693
 
4694
+ // This Source Code Form is subject to the terms of the Mozilla Public
4695
+ // License, v2.0. If a copy of the MPL was not distributed with this
4696
+ // file, You can obtain one at http://mozilla.org/MPL/2.0/
4697
+ //
4698
+ // This file incorporates work covered by the following copyright and
4699
+ // permission notice:
4700
+ //
4701
+ // Copyright 2018-2021 Cruise LLC
4702
+ //
4703
+ // This source code is licensed under the Apache License, Version 2.0,
4704
+ // found at http://www.apache.org/licenses/LICENSE-2.0
4705
+ // You may not use this file except in compliance with the License.
4706
+
4707
+ Logger.getLogger("src/index.ts");
4708
+
4694
4709
  // This Source Code Form is subject to the terms of the Mozilla Public
4695
4710
  // License, v2.0. If a copy of the MPL was not distributed with this
4696
4711
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
@@ -4904,7 +4919,7 @@ const APP_BAR_HEIGHT = 44;
4904
4919
 
4905
4920
  const _excluded$3 = ["className", "fullscreenState", "hasFullscreenDescendant", "selected", "sourceRect"];
4906
4921
  const PANEL_ROOT_CLASS_NAME = "FoxglovePanelRoot-root";
4907
- const useStyles$e = makeStyles$1()((theme, props) => {
4922
+ const useStyles$f = makeStyles$1()((theme, props) => {
4908
4923
  var _sourceRect$top, _sourceRect$left, _sourceRect$top2, _sourceRect$left2;
4909
4924
  const {
4910
4925
  palette,
@@ -5006,7 +5021,7 @@ const PanelRoot = /*#__PURE__*/forwardRef(function PanelRoot(props, ref) {
5006
5021
  const {
5007
5022
  classes,
5008
5023
  cx
5009
- } = useStyles$e({
5024
+ } = useStyles$f({
5010
5025
  sourceRect,
5011
5026
  hasFullscreenDescendant
5012
5027
  });
@@ -5024,7 +5039,7 @@ const PanelRoot = /*#__PURE__*/forwardRef(function PanelRoot(props, ref) {
5024
5039
  });
5025
5040
 
5026
5041
  const _excluded$2 = ["className"];
5027
- const useStyles$d = makeStyles$1()(theme => ({
5042
+ const useStyles$e = makeStyles$1()(theme => ({
5028
5043
  root: {
5029
5044
  padding: theme.spacing(0.375),
5030
5045
  fontSize: "0.875rem",
@@ -5043,7 +5058,7 @@ var ToolbarIconButton = /*#__PURE__*/forwardRef(function ToolbarIconButton(props
5043
5058
  const {
5044
5059
  classes,
5045
5060
  cx
5046
- } = useStyles$d();
5061
+ } = useStyles$e();
5047
5062
  return /*#__PURE__*/React__default.createElement(IconButton, _extends$1({
5048
5063
  ref: ref,
5049
5064
  className: cx(classes.root, className)
@@ -5599,6 +5614,39 @@ var fuzzysort = {exports: {}};
5599
5614
  var fuzzysortExports = fuzzysort.exports;
5600
5615
  var fuzzySort = /*@__PURE__*/getDefaultExportFromCjs(fuzzysortExports);
5601
5616
 
5617
+ const useStyles$d = makeStyles$1()(theme => ({
5618
+ root: {
5619
+ whiteSpace: "pre-line",
5620
+ code: {
5621
+ color: theme.palette.primary.main,
5622
+ background: "transparent",
5623
+ padding: 0
5624
+ }
5625
+ }
5626
+ }));
5627
+ function EmptyState({
5628
+ children,
5629
+ className
5630
+ }) {
5631
+ const {
5632
+ classes,
5633
+ cx
5634
+ } = useStyles$d();
5635
+ return /*#__PURE__*/React__default.createElement(Stack$1, {
5636
+ className: cx(classes.root, className),
5637
+ flex: "auto",
5638
+ alignItems: "center",
5639
+ justifyContent: "center",
5640
+ fullHeight: true,
5641
+ paddingX: 1
5642
+ }, /*#__PURE__*/React__default.createElement(Typography, {
5643
+ variant: "body2",
5644
+ color: "text.secondary",
5645
+ lineHeight: 1.4,
5646
+ align: "center"
5647
+ }, children));
5648
+ }
5649
+
5602
5650
  // This Source Code Form is subject to the terms of the Mozilla Public
5603
5651
  // License, v2.0. If a copy of the MPL was not distributed with this
5604
5652
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
@@ -30801,7 +30849,7 @@ function downloadFiles(files) {
30801
30849
  });
30802
30850
  }
30803
30851
 
30804
- const DEFAULT_CAMERA_STATE = {
30852
+ const DEFAULT_CAMERA_STATE$1 = {
30805
30853
  near: 0.001,
30806
30854
  far: 1000
30807
30855
  };
@@ -30847,7 +30895,7 @@ class ImageModeCamera extends PerspectiveCamera {
30847
30895
  });
30848
30896
  Object.defineProperty(this, _cameraState, {
30849
30897
  writable: true,
30850
- value: DEFAULT_CAMERA_STATE
30898
+ value: DEFAULT_CAMERA_STATE$1
30851
30899
  });
30852
30900
  Object.defineProperty(this, _rotation, {
30853
30901
  writable: true,
@@ -61421,6 +61469,23 @@ class CameraControls extends EventDispatcher {
61421
61469
  }
61422
61470
  }
61423
61471
 
61472
+ // This Source Code Form is subject to the terms of the Mozilla Public
61473
+ // License, v2.0. If a copy of the MPL was not distributed with this
61474
+ // file, You can obtain one at http://mozilla.org/MPL/2.0/
61475
+
61476
+ const DEFAULT_CAMERA_STATE = {
61477
+ distance: -500,
61478
+ perspective: localStorage.getItem("perspective") ? localStorage.getItem("perspective") === "true" : true,
61479
+ phi: 89,
61480
+ target: [0, 0, 0],
61481
+ targetOffset: [0, 0, 0],
61482
+ targetOrientation: [0, 1, 1, 1],
61483
+ thetaOffset: 180,
61484
+ fovy: 60,
61485
+ near: 2,
61486
+ far: 20000
61487
+ };
61488
+
61424
61489
  /**
61425
61490
  * Types of items that can be included in a context menu. Either a clickable item
61426
61491
  * or a divider.
@@ -75168,7 +75233,7 @@ class CameraStateSettings extends SceneExtension {
75168
75233
  if (action.action === "perform-node-action" && action.payload.id === "reset-camera") {
75169
75234
  const previousState = cloneDeep(this.renderer.config.cameraState);
75170
75235
  this.renderer.updateConfig(draft => {
75171
- draft.cameraState = cloneDeep(DEFAULT_CAMERA_STATE$1);
75236
+ draft.cameraState = cloneDeep(DEFAULT_CAMERA_STATE);
75172
75237
  });
75173
75238
  _classPrivateFieldLooseBase(this, _applyCameraStateToControls)[_applyCameraStateToControls](this.renderer.config.cameraState, previousState);
75174
75239
  this.renderer.emit("cameraMove", this.renderer);
@@ -75218,10 +75283,10 @@ class CameraStateSettings extends SceneExtension {
75218
75283
  const followMode = value;
75219
75284
  this.renderer.updateConfig(draft => {
75220
75285
  if (draft.followMode === "follow-none" || followMode === "follow-pose") {
75221
- draft.cameraState.targetOffset = [...DEFAULT_CAMERA_STATE$1.targetOffset];
75286
+ draft.cameraState.targetOffset = [...DEFAULT_CAMERA_STATE.targetOffset];
75222
75287
  }
75223
75288
  if (followMode === "follow-pose") {
75224
- draft.cameraState.thetaOffset = DEFAULT_CAMERA_STATE$1.thetaOffset;
75289
+ draft.cameraState.thetaOffset = DEFAULT_CAMERA_STATE.thetaOffset;
75225
75290
  }
75226
75291
  draft.followMode = followMode;
75227
75292
  });
@@ -75429,7 +75494,7 @@ class CameraStateSettings extends SceneExtension {
75429
75494
  this.add(_classPrivateFieldLooseBase(this, _cameraGroup)[_cameraGroup]);
75430
75495
  this.renderer.updateConfig(draft => {
75431
75496
  if (!draft.cameraState) {
75432
- draft.cameraState = cloneDeep(DEFAULT_CAMERA_STATE$1);
75497
+ draft.cameraState = cloneDeep(DEFAULT_CAMERA_STATE);
75433
75498
  }
75434
75499
  });
75435
75500
  const _isPerspective = this.renderer.config.cameraState.perspective;
@@ -75628,7 +75693,7 @@ function _setDefaultCameraState2(resetCamera = false) {
75628
75693
  _classPrivateFieldLooseBase(this, _perspectiveCamera)[_perspectiveCamera].position.set(0, 0, 0);
75629
75694
  _classPrivateFieldLooseBase(this, _orthographicCamera)[_orthographicCamera].position.set(0, 0, 0);
75630
75695
  this.renderer.updateConfig(draft => {
75631
- draft.cameraState = cloneDeep(DEFAULT_CAMERA_STATE$1);
75696
+ draft.cameraState = cloneDeep(DEFAULT_CAMERA_STATE);
75632
75697
  });
75633
75698
  }
75634
75699
  let restoredCameraState = false;
@@ -75649,7 +75714,7 @@ function _setDefaultCameraState2(resetCamera = false) {
75649
75714
  const activeCamera = this.getActiveCamera();
75650
75715
  activeCamera.updateMatrixWorld(true);
75651
75716
  this.renderer.queueAnimationFrame();
75652
- const cameraState = defaultCameraState !== null && defaultCameraState !== void 0 ? defaultCameraState : DEFAULT_CAMERA_STATE$1;
75717
+ const cameraState = defaultCameraState !== null && defaultCameraState !== void 0 ? defaultCameraState : DEFAULT_CAMERA_STATE;
75653
75718
  _classPrivateFieldLooseBase(this, _applyCameraStateToControls)[_applyCameraStateToControls](cameraState, undefined);
75654
75719
  _classPrivateFieldLooseBase(this, _controls)[_controls].update(0);
75655
75720
  this.renderer.queueAnimationFrame();
@@ -75748,7 +75813,7 @@ function _cameraSettingsNode2() {
75748
75813
  near: {
75749
75814
  label: t$1("threeDee:near"),
75750
75815
  input: "number",
75751
- step: DEFAULT_CAMERA_STATE$1.near,
75816
+ step: DEFAULT_CAMERA_STATE.near,
75752
75817
  precision: PRECISION_DISTANCE,
75753
75818
  value: camera.near
75754
75819
  },
@@ -81897,7 +81962,7 @@ function ThreeDeeRender(props) {
81897
81962
  const partialConfig = initialState;
81898
81963
 
81899
81964
  // Initialize the camera from default settings overlaid with persisted settings
81900
- const cameraState = merge$1(cloneDeep(DEFAULT_CAMERA_STATE$1), partialConfig === null || partialConfig === void 0 ? void 0 : partialConfig.cameraState);
81965
+ const cameraState = merge$1(cloneDeep(DEFAULT_CAMERA_STATE), partialConfig === null || partialConfig === void 0 ? void 0 : partialConfig.cameraState);
81901
81966
  const publish = merge$1(cloneDeep(DEFAULT_PUBLISH_SETTINGS), partialConfig === null || partialConfig === void 0 ? void 0 : partialConfig.publish);
81902
81967
  const transforms = (_partialConfig$transf = partialConfig === null || partialConfig === void 0 ? void 0 : partialConfig.transforms) !== null && _partialConfig$transf !== void 0 ? _partialConfig$transf : {};
81903
81968
  return {
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { a6 as ContextTracker, Y as ExternalTokenizer, U as styleTags, V as tags, Z as LRParser, W as LRLanguage, Q as indentNodeProp, T as foldNodeProp, af as bracketMatchingHandle, X as LanguageSupport, aa as EditorView, a1 as syntaxTree, ab as EditorSelection } from './index-deVCx3vy.js';
3
- import './protobuf-Be0G3NFz.js';
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-BWUFvnnr.js';
3
+ import './protobuf-BQPUfAzh.js';
4
4
  import './logger-Bqy1nuLj.js';
5
- import './depth-DlC6A3Te.js';
5
+ import './depth-Ct_zm8Rq.js';
6
6
  import './comlink-jf8bdrAf.js';
7
7
  import 'react';
8
8
  import 'zustand';
@@ -10,9 +10,9 @@ import 'react-mosaic-component';
10
10
  import '@mui/material';
11
11
  import './isArrayLikeObject-n9ytTioB.js';
12
12
  import './utils-DmlHZWuo.js';
13
- import './FoxgloveServer-B98MHUu6.js';
13
+ import './FoxgloveServer-Z9mJitqG.js';
14
14
  import 'ms';
15
- import './foxglove-protocol-yHdoBNaD.js';
15
+ import './foxglove-protocol-DTBud3kT.js';
16
16
  import 'react-dnd';
17
17
  import 'react-dnd-html5-backend';
18
18
  import './i18next-17tp0Ngf.js';
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { i as getAugmentedNamespace } from './protobuf-Be0G3NFz.js';
2
+ import { i as getAugmentedNamespace } from './protobuf-BQPUfAzh.js';
3
3
 
4
4
  var typescript = {};
5
5