@luxonis/visualizer-protobuf 3.0.1 → 3.0.2
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-B98MHUu6.js} +1 -1
- package/dist/{communicator-Bry8Rhl_.js → communicator-Bzkx3Qfr.js} +2 -2
- package/dist/{depth-Be6jMsNV.js → depth-BJ1GI-lD.js} +2 -2
- package/dist/{deserialization.worker-BRFVmAW6.js → deserialization.worker-CpadaVUC.js} +4 -4
- package/dist/{foxglove-protocol-BvaCHfze.js → foxglove-protocol-yHdoBNaD.js} +1 -1
- package/dist/{index-T8Clygdf.js → index-47n_qlIK.js} +6 -6
- package/dist/{index-BAyXlO8J.js → index-ANY2H_o3.js} +6 -6
- package/dist/{index-CchVwbzA.js → index-BCTfxMIE.js} +6 -6
- package/dist/{index-6BlZXZuC.js → index-BG2Ave0p.js} +6 -6
- package/dist/{index-DSRKZJLN.js → index-BGEFAe_Y.js} +6 -6
- package/dist/{index-DNSv_gUV.js → index-BJXCp1lN.js} +8 -8
- package/dist/{index-B6jTuetX.js → index-BOEeeBIi.js} +6 -6
- package/dist/{index-g-SFBx17.js → index-BYpImo0l.js} +6 -6
- package/dist/{index-B1qvG-qo.js → index-BymWWFCn.js} +6 -6
- package/dist/{index-pQMSWqkM.js → index-C1D3H_Uz.js} +33 -33
- package/dist/{index-BlYRUX1p.js → index-C2nnoTzN.js} +6 -6
- package/dist/{index-DziMrclw.js → index-Czo7dUvS.js} +6 -6
- package/dist/{index-D-yirRS0.js → index-D8h9BfrP.js} +6 -6
- package/dist/{index-7ZRO7erP.js → index-DF-xcCVa.js} +6 -6
- package/dist/{index-CbPp1IVO.js → index-DKHbBs7i.js} +6 -6
- package/dist/{index-D4JcPcem.js → index-DQXQJcjO.js} +6 -6
- package/dist/{index-CnfGAo2c.js → index-DThaHb_u.js} +6 -6
- package/dist/{index-Czx66qud.js → index-DV3HrUsB.js} +6 -6
- package/dist/{index-D61TcvW7.js → index-Da-CoL-V.js} +6 -6
- package/dist/{index-BLi9zAwC.js → index-Dqm1x8G2.js} +1 -1
- package/dist/{index-CUOzEGiw.js → index-KQ2js0SY.js} +7 -7
- package/dist/index.js +6 -6
- package/dist/lib/src/messaging/message-handler.js +2 -2
- package/dist/lib/src/messaging/message-handler.js.map +1 -1
- package/dist/lib/src/output.css +1 -1
- package/dist/lib/src/utils/logger.d.ts +4 -5
- package/dist/lib/src/utils/logger.d.ts.map +1 -1
- package/dist/lib/src/utils/logger.js +26 -18
- package/dist/lib/src/utils/logger.js.map +1 -1
- package/dist/logger-Bqy1nuLj.js +75 -0
- package/dist/{pointcloudFromDepth.worker-BcnsKUSs.js → pointcloudFromDepth.worker-JLptpLHr.js} +1 -1
- package/dist/{protobuf-fLt-ppqN.js → protobuf-Be0G3NFz.js} +125 -2
- package/dist/{worker-DR9o4zBS.js → worker-0Q6os6Ck.js} +5 -5
- package/dist/{worker-BGG-ZdUp.js → worker-NFznpx6V.js} +4 -4
- package/package.json +1 -1
- package/dist/logger-CgxnhrWP.js +0 -196
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { U as styleTags, V as tags, Z as LRParser, W as LRLanguage, Q as indentNodeProp, R as continuedIndent, a3 as flatIndent, a4 as delimitedIndent, T as foldNodeProp, a5 as foldInside, X as LanguageSupport } from './index-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { U as styleTags, V as tags, Z as LRParser, W as LRLanguage, Q as indentNodeProp, R as continuedIndent, a3 as flatIndent, a4 as delimitedIndent, T as foldNodeProp, a5 as foldInside, X as LanguageSupport } from './index-C1D3H_Uz.js';
|
|
3
|
+
import './protobuf-Be0G3NFz.js';
|
|
4
|
+
import './logger-Bqy1nuLj.js';
|
|
5
|
+
import './depth-BJ1GI-lD.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'zustand';
|
|
8
9
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-fLt-ppqN.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-yHdoBNaD.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 { Y as ExternalTokenizer, a6 as ContextTracker, U as styleTags, V as tags, Z as LRParser, a2 as LocalTokenGroup, a7 as snippetCompletion, a1 as syntaxTree, W as LRLanguage, Q as indentNodeProp, R as continuedIndent, a3 as flatIndent, a4 as delimitedIndent, T as foldNodeProp, a5 as foldInside, X as LanguageSupport, $ as ifNotIn, a0 as completeFromList, a8 as IterMode, a9 as NodeWeakMap } from './index-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { Y as ExternalTokenizer, a6 as ContextTracker, U as styleTags, V as tags, Z as LRParser, a2 as LocalTokenGroup, a7 as snippetCompletion, a1 as syntaxTree, W as LRLanguage, Q as indentNodeProp, R as continuedIndent, a3 as flatIndent, a4 as delimitedIndent, T as foldNodeProp, a5 as foldInside, X as LanguageSupport, $ as ifNotIn, a0 as completeFromList, a8 as IterMode, a9 as NodeWeakMap } from './index-C1D3H_Uz.js';
|
|
3
|
+
import './protobuf-Be0G3NFz.js';
|
|
4
|
+
import './logger-Bqy1nuLj.js';
|
|
5
|
+
import './depth-BJ1GI-lD.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'zustand';
|
|
8
9
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-fLt-ppqN.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-yHdoBNaD.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 { aa as EditorView, ab as EditorSelection, W as LRLanguage, U as styleTags, V as tags, Q as indentNodeProp, a4 as delimitedIndent, T as foldNodeProp, X as LanguageSupport, Z as LRParser, a1 as syntaxTree, ac as html, ad as parseMixed, Y as ExternalTokenizer } from './index-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { aa as EditorView, ab as EditorSelection, W as LRLanguage, U as styleTags, V as tags, Q as indentNodeProp, a4 as delimitedIndent, T as foldNodeProp, X as LanguageSupport, Z as LRParser, a1 as syntaxTree, ac as html, ad as parseMixed, Y as ExternalTokenizer } from './index-C1D3H_Uz.js';
|
|
3
|
+
import './protobuf-Be0G3NFz.js';
|
|
4
|
+
import './logger-Bqy1nuLj.js';
|
|
5
|
+
import './depth-BJ1GI-lD.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'zustand';
|
|
8
9
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-fLt-ppqN.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-yHdoBNaD.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 { Q as indentNodeProp, R as continuedIndent, T as foldNodeProp, U as styleTags, V as tags, W as LRLanguage, X as LanguageSupport, Y as ExternalTokenizer, Z as LRParser, $ as ifNotIn, a0 as completeFromList, a1 as syntaxTree } from './index-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { Q as indentNodeProp, R as continuedIndent, T as foldNodeProp, U as styleTags, V as tags, W as LRLanguage, X as LanguageSupport, Y as ExternalTokenizer, Z as LRParser, $ as ifNotIn, a0 as completeFromList, a1 as syntaxTree } from './index-C1D3H_Uz.js';
|
|
3
|
+
import './protobuf-Be0G3NFz.js';
|
|
4
|
+
import './logger-Bqy1nuLj.js';
|
|
5
|
+
import './depth-BJ1GI-lD.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'zustand';
|
|
8
9
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-fLt-ppqN.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-yHdoBNaD.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 { a6 as ContextTracker, Y as ExternalTokenizer, U as styleTags, V as tags, Z as LRParser, W as LRLanguage, Q as indentNodeProp, a4 as delimitedIndent, T as foldNodeProp, a5 as foldInside, X as LanguageSupport, ad as parseMixed } from './index-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { a6 as ContextTracker, Y as ExternalTokenizer, U as styleTags, V as tags, Z as LRParser, W as LRLanguage, Q as indentNodeProp, a4 as delimitedIndent, T as foldNodeProp, a5 as foldInside, X as LanguageSupport, ad as parseMixed } from './index-C1D3H_Uz.js';
|
|
3
|
+
import './protobuf-Be0G3NFz.js';
|
|
4
|
+
import './logger-Bqy1nuLj.js';
|
|
5
|
+
import './depth-BJ1GI-lD.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'zustand';
|
|
8
9
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-fLt-ppqN.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-yHdoBNaD.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 { aa as EditorView, ab as EditorSelection, W as LRLanguage, U as styleTags, V as tags, Q as indentNodeProp, a4 as delimitedIndent, T as foldNodeProp, X as LanguageSupport, Z as LRParser, a2 as LocalTokenGroup, a1 as syntaxTree, ac as html, ad as parseMixed, Y as ExternalTokenizer } from './index-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { aa as EditorView, ab as EditorSelection, W as LRLanguage, U as styleTags, V as tags, Q as indentNodeProp, a4 as delimitedIndent, T as foldNodeProp, X as LanguageSupport, Z as LRParser, a2 as LocalTokenGroup, a1 as syntaxTree, ac as html, ad as parseMixed, Y as ExternalTokenizer } from './index-C1D3H_Uz.js';
|
|
3
|
+
import './protobuf-Be0G3NFz.js';
|
|
4
|
+
import './logger-Bqy1nuLj.js';
|
|
5
|
+
import './depth-BJ1GI-lD.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'zustand';
|
|
8
9
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-fLt-ppqN.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-yHdoBNaD.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 { Y as ExternalTokenizer, U as styleTags, V as tags, Z as LRParser, W as LRLanguage, Q as indentNodeProp, R as continuedIndent, T as foldNodeProp, a5 as foldInside, X as LanguageSupport } from './index-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { Y as ExternalTokenizer, U as styleTags, V as tags, Z as LRParser, W as LRLanguage, Q as indentNodeProp, R as continuedIndent, T as foldNodeProp, a5 as foldInside, X as LanguageSupport } from './index-C1D3H_Uz.js';
|
|
3
|
+
import './protobuf-Be0G3NFz.js';
|
|
4
|
+
import './logger-Bqy1nuLj.js';
|
|
5
|
+
import './depth-BJ1GI-lD.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'zustand';
|
|
8
9
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-fLt-ppqN.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-yHdoBNaD.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 { U as styleTags, V as tags, W as LRLanguage, X as LanguageSupport, Z as LRParser, a2 as LocalTokenGroup, ac as html, ad as parseMixed, ag as javascriptLanguage } from './index-
|
|
3
|
-
import './
|
|
4
|
-
import './
|
|
2
|
+
import { U as styleTags, V as tags, W as LRLanguage, X as LanguageSupport, Z as LRParser, a2 as LocalTokenGroup, ac as html, ad as parseMixed, ag as javascriptLanguage } from './index-C1D3H_Uz.js';
|
|
3
|
+
import './protobuf-Be0G3NFz.js';
|
|
4
|
+
import './logger-Bqy1nuLj.js';
|
|
5
|
+
import './depth-BJ1GI-lD.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import 'react';
|
|
7
8
|
import 'zustand';
|
|
8
9
|
import 'react-mosaic-component';
|
|
9
|
-
import './protobuf-fLt-ppqN.js';
|
|
10
10
|
import '@mui/material';
|
|
11
11
|
import './isArrayLikeObject-n9ytTioB.js';
|
|
12
12
|
import './utils-DmlHZWuo.js';
|
|
13
|
-
import './FoxgloveServer-
|
|
13
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
14
14
|
import 'ms';
|
|
15
|
-
import './foxglove-protocol-
|
|
15
|
+
import './foxglove-protocol-yHdoBNaD.js';
|
|
16
16
|
import 'react-dnd';
|
|
17
17
|
import 'react-dnd-html5-backend';
|
|
18
18
|
import './i18next-17tp0Ngf.js';
|
|
@@ -2,10 +2,10 @@
|
|
|
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 { W as isSymbol, X as toString, Y as keys, Z as getSymbols$1, _ as stubArray, $ as arrayPush, a0 as baseGetAllKeys, g as getTag, a1 as getAllKeys, k as baseGet, c as baseIteratee, j as castPath, t as toKey, a2 as arrayMap$1, a3 as useCurrentLayoutActions, a4 as useCurrentLayoutSelector, r as reportError, A as AppError, a5 as usePanelMosaicId, a6 as noop$4, L as Logger, a7 as useSelectedPanels, o as getPanelTypeFromId, M as useShallowMemo, T as TAB_PANEL_TYPE, J as filterMap, d as dist$2, a8 as useAppConfiguration, a9 as useJsonTreeTheme } from './depth-
|
|
5
|
+
import { W as isSymbol, X as toString, Y as keys, Z as getSymbols$1, _ as stubArray, $ as arrayPush, a0 as baseGetAllKeys, g as getTag, a1 as getAllKeys, k as baseGet, c as baseIteratee, j as castPath, t as toKey, a2 as arrayMap$1, a3 as useCurrentLayoutActions, a4 as useCurrentLayoutSelector, r as reportError, A as AppError, a5 as usePanelMosaicId, a6 as noop$4, L as Logger, a7 as useSelectedPanels, o as getPanelTypeFromId, M as useShallowMemo, T as TAB_PANEL_TYPE, J as filterMap, d as dist$2, a8 as useAppConfiguration, a9 as useJsonTreeTheme } from './depth-BJ1GI-lD.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-
|
|
8
|
-
import { _ as _classPrivateFieldLooseBase, a as _classPrivateFieldLooseKey,
|
|
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-C1D3H_Uz.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';
|
|
9
9
|
import { MosaicDragType, MosaicContext, MosaicWindowContext, getOtherBranch, getNodeAtPath } from 'react-mosaic-component';
|
|
10
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';
|
|
11
11
|
import { a as assignValue, b as baseAssignValue, t as tinycolor, c as t$1, i as instance } from './i18next-17tp0Ngf.js';
|
|
@@ -14,22 +14,22 @@ import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
|
14
14
|
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
15
15
|
import CancelIcon from '@mui/icons-material/Cancel';
|
|
16
16
|
import SearchIcon from '@mui/icons-material/Search';
|
|
17
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs, d as getAugmentedNamespace } from './protobuf-fLt-ppqN.js';
|
|
18
17
|
import { useDrag, useDrop } from 'react-dnd';
|
|
19
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';
|
|
20
19
|
import ReactDOM__default from 'react-dom';
|
|
21
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';
|
|
22
|
-
import { t as typescript } from './index-
|
|
21
|
+
import { t as typescript } from './index-Dqm1x8G2.js';
|
|
23
22
|
import { CacheProvider } from '@emotion/react';
|
|
24
23
|
import '@mui/material/styles/createTypography';
|
|
25
|
-
import { E as EventEmitter } from './FoxgloveServer-
|
|
24
|
+
import { E as EventEmitter } from './FoxgloveServer-B98MHUu6.js';
|
|
26
25
|
import require$$1$3 from 'color';
|
|
27
26
|
import require$$2$1 from 'lodash.curry';
|
|
28
27
|
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
|
|
29
28
|
import SettingsIcon from '@mui/icons-material/Settings';
|
|
30
29
|
import './comlink-jf8bdrAf.js';
|
|
30
|
+
import './logger-Bqy1nuLj.js';
|
|
31
31
|
import './utils-DmlHZWuo.js';
|
|
32
|
-
import './foxglove-protocol-
|
|
32
|
+
import './foxglove-protocol-yHdoBNaD.js';
|
|
33
33
|
import 'react-dnd-html5-backend';
|
|
34
34
|
import '@mui/system/colorManipulator';
|
|
35
35
|
import 'object-assign';
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { ar as FrameStore, ak as ImagePanel, aj as PanelLayout, al as PointCloudPanel, ah as VisualizerConnection, ai as VisualizerContext, am as constructKeyForTopicRenderMetrics, as as getIMUEventEmitter, ao as globalDecodeMetricsManager, an as globalInputEventMetricsManager, ap as globalRenderMetricsManager, aq as globalThroughputMetricsManager } from './index-
|
|
3
|
-
export { Q as getDistanceFromDepthDataForOffset } from './depth-
|
|
4
|
-
import './
|
|
2
|
+
export { ar as FrameStore, ak as ImagePanel, aj as PanelLayout, al as PointCloudPanel, ah as VisualizerConnection, ai as VisualizerContext, am as constructKeyForTopicRenderMetrics, as as getIMUEventEmitter, ao as globalDecodeMetricsManager, an as globalInputEventMetricsManager, ap as globalRenderMetricsManager, aq as globalThroughputMetricsManager } from './index-C1D3H_Uz.js';
|
|
3
|
+
export { Q as getDistanceFromDepthDataForOffset } from './depth-BJ1GI-lD.js';
|
|
4
|
+
import './protobuf-Be0G3NFz.js';
|
|
5
|
+
import './logger-Bqy1nuLj.js';
|
|
5
6
|
import './comlink-jf8bdrAf.js';
|
|
6
7
|
import './utils-DmlHZWuo.js';
|
|
7
|
-
import './
|
|
8
|
-
import './FoxgloveServer-CzGfv6A4.js';
|
|
8
|
+
import './FoxgloveServer-B98MHUu6.js';
|
|
9
9
|
import 'ms';
|
|
10
10
|
import 'react';
|
|
11
|
-
import './foxglove-protocol-
|
|
11
|
+
import './foxglove-protocol-yHdoBNaD.js';
|
|
12
12
|
import 'react-dnd';
|
|
13
13
|
import 'react-dnd-html5-backend';
|
|
14
14
|
import 'react-mosaic-component';
|
|
@@ -21,8 +21,8 @@ export function createMessageHandler(callback) {
|
|
|
21
21
|
workerWrapper = newWorkerWrapper;
|
|
22
22
|
workerPool.set(topic, newWorkerWrapper);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
void workerWrapper.remote.handleMessageToDecode({ schema, buffer, topic, neuralCameraIntrinsics, stereoDepthMaxValue: Number(localStorage.getItem("stereoDepthMaxValue") ?? "8000") }, ConfigStore.getInstance(),
|
|
24
|
+
const proxiedErrorCallback = errorCallback ? Comlink.proxy(errorCallback) : undefined;
|
|
25
|
+
void workerWrapper.remote.handleMessageToDecode({ schema, buffer, topic, neuralCameraIntrinsics, stereoDepthMaxValue: Number(localStorage.getItem("stereoDepthMaxValue") ?? "8000") }, ConfigStore.getInstance(), proxiedErrorCallback);
|
|
26
26
|
}),
|
|
27
27
|
cleanup: () => {
|
|
28
28
|
// Properly dispose of all workers and release Comlink proxies
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-handler.js","sourceRoot":"","sources":["../../../../src/messaging/message-handler.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AASnD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAYpD,SAAS,UAAU,CAAC,QAAuC;IACzD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,0BAA0B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAC7H,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAA2B,MAAM,CAAC,CAAC;IAE1E,KAAK,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAClD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC;AAED,MAAM,sBAAsB,GAAI,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC,wBAAwB,CAAC,IAAI,IAAI,CAA0B,CAAC;AAE5H,MAAM,UAAU,oBAAoB,CAAC,QAAuC;IAC1E,MAAM,UAAU,GAAG,IAAI,GAAG,EAAyB,CAAC;IACpD,OAAO;QACL,MAAM,EAAE,C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3
|
protected static instance: Logger | null;
|
|
4
|
+
private static _debugLogsEnabled;
|
|
4
5
|
protected constructor();
|
|
5
|
-
static
|
|
6
|
-
static
|
|
6
|
+
static get debugLogsEnabled(): boolean;
|
|
7
|
+
static set debugLogsEnabled(value: boolean);
|
|
7
8
|
log(message?: any, ...optionalParams: any[]): void;
|
|
8
9
|
info(message?: any, ...optionalParams: any[]): void;
|
|
9
10
|
debug(message?: any, ...optionalParams: any[]): void;
|
|
10
|
-
getDebugLogsEnabled(): boolean;
|
|
11
|
-
setDebugLogsEnabled(enabled: boolean): void;
|
|
12
11
|
warn(message?: any, ...optionalParams: any[]): void;
|
|
13
12
|
error(message?: any, ...optionalParams: any[]): void;
|
|
14
13
|
static getLogger(): Logger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/utils/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/utils/logger.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B,6BAAuC,CAAC;AAKjF,qBAAa,MAAM;IACjB,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAChD,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAwB;IAExD,SAAS;IAET,MAAM,KAAK,gBAAgB,IAAI,OAAO,CAYrC;IAED,MAAM,KAAK,gBAAgB,CAAC,KAAK,EAAE,OAAO,EASzC;IAGM,GAAG,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI;IAMlD,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI;IAOnD,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI;IAOpD,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI;IAOnD,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,IAAI;WAM7C,SAAS,IAAI,MAAM;CAOlC"}
|
|
@@ -1,51 +1,59 @@
|
|
|
1
1
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
2
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
3
3
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
4
|
+
export const DEBUG_LOGS_LOCAL_STORAGE_KEY = "viewer-debug-logs-enabled";
|
|
5
|
+
const LOG_FROM_WORKER = false; // Workers don't have access to localStorage, so we need a fallback value for them. We default to false to avoid spamming logs from workers, but this can be changed by setting the value in the main thread before the worker is initialized.
|
|
4
6
|
// Singleton class used for logging across our apps
|
|
5
7
|
// Is controlled by DEBUG_LOGS_LOCAL_STORAGE_KEY key
|
|
6
8
|
export class Logger {
|
|
7
9
|
static instance = null;
|
|
8
|
-
static
|
|
10
|
+
static _debugLogsEnabled = null;
|
|
9
11
|
constructor() { }
|
|
10
|
-
static
|
|
11
|
-
|
|
12
|
+
static get debugLogsEnabled() {
|
|
13
|
+
if (Logger._debugLogsEnabled === null) {
|
|
14
|
+
if (typeof localStorage === "undefined") {
|
|
15
|
+
Logger._debugLogsEnabled = LOG_FROM_WORKER;
|
|
16
|
+
return LOG_FROM_WORKER;
|
|
17
|
+
}
|
|
18
|
+
const storedValue = localStorage.getItem(DEBUG_LOGS_LOCAL_STORAGE_KEY);
|
|
19
|
+
Logger._debugLogsEnabled = storedValue === "true";
|
|
20
|
+
}
|
|
21
|
+
return Logger._debugLogsEnabled;
|
|
12
22
|
}
|
|
13
|
-
static
|
|
14
|
-
Logger
|
|
23
|
+
static set debugLogsEnabled(value) {
|
|
24
|
+
Logger._debugLogsEnabled = value;
|
|
25
|
+
if (typeof localStorage === "undefined") {
|
|
26
|
+
console.warn("cannot interact with localStorage in worker");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
localStorage.setItem(DEBUG_LOGS_LOCAL_STORAGE_KEY, value ? "true" : "false");
|
|
15
30
|
}
|
|
16
31
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
17
32
|
log(message, ...optionalParams) {
|
|
18
|
-
if (Logger.
|
|
33
|
+
if (Logger.debugLogsEnabled) {
|
|
19
34
|
console.log(message, ...optionalParams);
|
|
20
35
|
}
|
|
21
36
|
}
|
|
22
|
-
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
23
37
|
info(message, ...optionalParams) {
|
|
24
|
-
if (Logger.
|
|
25
|
-
console.
|
|
38
|
+
if (Logger.debugLogsEnabled) {
|
|
39
|
+
console.log(message, ...optionalParams);
|
|
26
40
|
}
|
|
27
41
|
}
|
|
28
42
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
29
43
|
debug(message, ...optionalParams) {
|
|
30
|
-
if (Logger.
|
|
44
|
+
if (Logger.debugLogsEnabled) {
|
|
31
45
|
console.debug(message, ...optionalParams);
|
|
32
46
|
}
|
|
33
47
|
}
|
|
34
|
-
getDebugLogsEnabled() {
|
|
35
|
-
return Logger.getDebugLogsEnabled();
|
|
36
|
-
}
|
|
37
|
-
setDebugLogsEnabled(enabled) {
|
|
38
|
-
Logger.setDebugLogsEnabled(enabled);
|
|
39
|
-
}
|
|
40
48
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
41
49
|
warn(message, ...optionalParams) {
|
|
42
|
-
if (Logger.
|
|
50
|
+
if (Logger.debugLogsEnabled) {
|
|
43
51
|
console.warn(message, ...optionalParams);
|
|
44
52
|
}
|
|
45
53
|
}
|
|
46
54
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
47
55
|
error(message, ...optionalParams) {
|
|
48
|
-
if (Logger.
|
|
56
|
+
if (Logger.debugLogsEnabled) {
|
|
49
57
|
console.error(message, ...optionalParams);
|
|
50
58
|
}
|
|
51
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,mDAAmD;AACnD,oDAAoD;AACpD,MAAM,OAAO,MAAM;IACP,MAAM,CAAC,QAAQ,GAAkB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,MAAM,CAAC,MAAM,4BAA4B,GAAG,2BAAoC,CAAC;AACjF,MAAM,eAAe,GAAG,KAAc,CAAC,CAAC,8OAA8O;AAEtR,mDAAmD;AACnD,oDAAoD;AACpD,MAAM,OAAO,MAAM;IACP,MAAM,CAAC,QAAQ,GAAkB,IAAI,CAAC;IACxC,MAAM,CAAC,iBAAiB,GAAmB,IAAI,CAAC;IAExD,gBAAyB,CAAC;IAE1B,MAAM,KAAK,gBAAgB;QACzB,IAAI,MAAM,CAAC,iBAAiB,KAAK,IAAI,EAAE,CAAC;YACtC,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,CAAC;gBACxC,MAAM,CAAC,iBAAiB,GAAG,eAAe,CAAC;gBAC3C,OAAO,eAAe,CAAC;YACzB,CAAC;YAED,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;YACvE,MAAM,CAAC,iBAAiB,GAAG,WAAW,KAAK,MAAM,CAAC;QACpD,CAAC;QAED,OAAO,MAAM,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAED,MAAM,KAAK,gBAAgB,CAAC,KAAc;QACxC,MAAM,CAAC,iBAAiB,GAAG,KAAK,CAAC;QAEjC,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,CAAC;YACxC,OAAO,CAAC,IAAI,CAAC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M,EAAE,CAAC;QACjC,CAAC;QAED,OAAO,MAAM,CAAC,QAAQ,CAAC;IACzB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
3
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
4
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
5
|
+
|
|
6
|
+
const DEBUG_LOGS_LOCAL_STORAGE_KEY = "viewer-debug-logs-enabled";
|
|
7
|
+
const LOG_FROM_WORKER = false; // Workers don't have access to localStorage, so we need a fallback value for them. We default to false to avoid spamming logs from workers, but this can be changed by setting the value in the main thread before the worker is initialized.
|
|
8
|
+
|
|
9
|
+
// Singleton class used for logging across our apps
|
|
10
|
+
// Is controlled by DEBUG_LOGS_LOCAL_STORAGE_KEY key
|
|
11
|
+
class Logger {
|
|
12
|
+
constructor() {}
|
|
13
|
+
static get debugLogsEnabled() {
|
|
14
|
+
if (Logger._debugLogsEnabled === null) {
|
|
15
|
+
if (typeof localStorage === "undefined") {
|
|
16
|
+
Logger._debugLogsEnabled = LOG_FROM_WORKER;
|
|
17
|
+
return LOG_FROM_WORKER;
|
|
18
|
+
}
|
|
19
|
+
const storedValue = localStorage.getItem(DEBUG_LOGS_LOCAL_STORAGE_KEY);
|
|
20
|
+
Logger._debugLogsEnabled = storedValue === "true";
|
|
21
|
+
}
|
|
22
|
+
return Logger._debugLogsEnabled;
|
|
23
|
+
}
|
|
24
|
+
static set debugLogsEnabled(value) {
|
|
25
|
+
Logger._debugLogsEnabled = value;
|
|
26
|
+
if (typeof localStorage === "undefined") {
|
|
27
|
+
console.warn("cannot interact with localStorage in worker");
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
localStorage.setItem(DEBUG_LOGS_LOCAL_STORAGE_KEY, value ? "true" : "false");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
34
|
+
log(message, ...optionalParams) {
|
|
35
|
+
if (Logger.debugLogsEnabled) {
|
|
36
|
+
console.log(message, ...optionalParams);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
info(message, ...optionalParams) {
|
|
40
|
+
if (Logger.debugLogsEnabled) {
|
|
41
|
+
console.log(message, ...optionalParams);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
46
|
+
debug(message, ...optionalParams) {
|
|
47
|
+
if (Logger.debugLogsEnabled) {
|
|
48
|
+
console.debug(message, ...optionalParams);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
53
|
+
warn(message, ...optionalParams) {
|
|
54
|
+
if (Logger.debugLogsEnabled) {
|
|
55
|
+
console.warn(message, ...optionalParams);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
60
|
+
error(message, ...optionalParams) {
|
|
61
|
+
if (Logger.debugLogsEnabled) {
|
|
62
|
+
console.error(message, ...optionalParams);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
static getLogger() {
|
|
66
|
+
if (!Logger.instance) {
|
|
67
|
+
Logger.instance = new Logger();
|
|
68
|
+
}
|
|
69
|
+
return Logger.instance;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
Logger.instance = null;
|
|
73
|
+
Logger._debugLogsEnabled = null;
|
|
74
|
+
|
|
75
|
+
export { Logger as L };
|
package/dist/{pointcloudFromDepth.worker-BcnsKUSs.js → pointcloudFromDepth.worker-JLptpLHr.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { e as expose } from './comlink-jf8bdrAf.js';
|
|
3
3
|
import { i as i420ToRgbaToPointcloud } from './utils-DmlHZWuo.js';
|
|
4
|
-
import { L as Logger } from './logger-
|
|
4
|
+
import { L as Logger } from './logger-Bqy1nuLj.js';
|
|
5
5
|
|
|
6
6
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
7
7
|
// License, v2.0. If a copy of the MPL was not distributed with this
|