@luxonis/visualizer-protobuf 2.54.0 → 2.55.0
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/{tslib.es6-DRjIPBeG.js → depth-CJRDcPfJ.js} +606 -7
- package/dist/{deserialization.worker-Bpkjw7D9.js → deserialization.worker-CSrvuPJi.js} +3 -163
- package/dist/{index-CyrPYTGX.js → index-B0IpMdax.js} +5 -5
- package/dist/{index-DHGAv31w.js → index-B1EWIlvs.js} +5 -5
- package/dist/{index-m4X-dAYE.js → index-BDHayiTI.js} +5 -5
- package/dist/{index-CjYzC0A7.js → index-BSAMfz5u.js} +5 -5
- package/dist/{index-yPVnPyRX.js → index-BqQBFD5u.js} +5 -5
- package/dist/{index-fYQyZr0d.js → index-BufdvuOr.js} +91 -32
- package/dist/{index-qlOWIORo.js → index-C1cjJ7ot.js} +5 -5
- package/dist/{index-CH-H51Mb.js → index-C21bRml-.js} +5 -5
- package/dist/{index-h2VnGOmu.js → index-C4FZGmwk.js} +5 -5
- package/dist/{index-DCsuDhRW.js → index-CCsyHqht.js} +5 -5
- package/dist/{index-JVuuB2xM.js → index-CjDSWxpT.js} +5 -5
- package/dist/{index-gX9xRfib.js → index-CjbUVJBU.js} +5 -5
- package/dist/{index-J5Q3wT5J.js → index-CuAv3dv7.js} +129 -13
- package/dist/{index-B4MBUxAy.js → index-Cvfc3u1v.js} +5 -5
- package/dist/{index-V9dvhdte.js → index-DXSdCiF4.js} +5 -5
- package/dist/{index-B7o1it73.js → index-DayMpcW2.js} +5 -5
- package/dist/{index-DFQcHMES.js → index-DtPRSZis.js} +5 -6
- package/dist/{index-DCcMNVVP.js → index-VBr6opQ-.js} +5 -5
- package/dist/{index-DP8vP8Lv.js → index-bjF9nlAn.js} +5 -5
- package/dist/index.js +8 -8
- package/dist/lib/src/components/Panel.d.ts +3 -0
- package/dist/lib/src/components/Panel.d.ts.map +1 -1
- package/dist/lib/src/components/Panel.js.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.d.ts +1 -1
- package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
- package/dist/lib/src/connection/foxglove-connection.js +9 -2
- package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
- package/dist/lib/src/index.d.ts +2 -0
- package/dist/lib/src/index.d.ts.map +1 -1
- package/dist/lib/src/index.js +3 -0
- package/dist/lib/src/index.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.d.ts +1 -0
- package/dist/lib/src/messaging/deserialization/video/depth.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/depth.js +16 -0
- package/dist/lib/src/messaging/deserialization/video/depth.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js +0 -1
- package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
- package/dist/lib/src/panels/ImagePanel.d.ts +8 -0
- package/dist/lib/src/panels/ImagePanel.d.ts.map +1 -1
- package/dist/lib/src/panels/ImagePanel.js +5 -3
- package/dist/lib/src/panels/ImagePanel.js.map +1 -1
- package/dist/lib/src/panels/PointCloudPanel.d.ts +8 -0
- package/dist/lib/src/panels/PointCloudPanel.d.ts.map +1 -1
- package/dist/lib/src/panels/PointCloudPanel.js +7 -7
- package/dist/lib/src/panels/PointCloudPanel.js.map +1 -1
- package/dist/lib/src/utils/frame-store.d.ts +11 -0
- package/dist/lib/src/utils/frame-store.d.ts.map +1 -0
- package/dist/lib/src/utils/frame-store.js +22 -0
- package/dist/lib/src/utils/frame-store.js.map +1 -0
- package/dist/lib/src/utils/metrics-manager.d.ts.map +1 -1
- package/dist/lib/src/utils/metrics-manager.js +1 -0
- package/dist/lib/src/utils/metrics-manager.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/IRenderer.d.ts +3 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/IRenderer.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/IRenderer.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.d.ts +6 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.js +57 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/Renderer.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/RendererOverlay.d.ts +1 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/RendererOverlay.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/RendererOverlay.js +11 -11
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/RendererOverlay.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts +9 -0
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js +36 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/ThreeDeeRender.js.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.d.ts +11 -2
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.js +7 -2
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/useMessageReducer-DdY2kZpp.js +0 -422
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, a4 as LocalTokenGroup, a5 as snippetCompletion, $ as syntaxTree, T as LRLanguage, K as indentNodeProp, M as continuedIndent, a0 as flatIndent, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport, Y as ifNotIn, Z as completeFromList, a6 as IterMode, a7 as NodeWeakMap } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, a4 as LocalTokenGroup, a5 as snippetCompletion, $ as syntaxTree, T as LRLanguage, K as indentNodeProp, M as continuedIndent, a0 as flatIndent, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport, Y as ifNotIn, Z as completeFromList, a6 as IterMode, a7 as NodeWeakMap } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, N as foldNodeProp, a2 as foldInside, K as indentNodeProp, M as continuedIndent, a8 as defineCSSCompletionSource, U as LanguageSupport } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, N as foldNodeProp, a2 as foldInside, K as indentNodeProp, M as continuedIndent, a8 as defineCSSCompletionSource, U as LanguageSupport } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { O as styleTags, Q as tags, T as LRLanguage, K as indentNodeProp, M as continuedIndent, N as foldNodeProp, a2 as foldInside, a8 as defineCSSCompletionSource, U as LanguageSupport, X as LRParser, V as ExternalTokenizer } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { O as styleTags, Q as tags, T as LRLanguage, K as indentNodeProp, M as continuedIndent, N as foldNodeProp, a2 as foldInside, a8 as defineCSSCompletionSource, U as LanguageSupport, X as LRParser, V as ExternalTokenizer } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { a9 as EditorView, aa as EditorSelection, T as LRLanguage, O as styleTags, Q as tags, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, U as LanguageSupport, X as LRParser, $ as syntaxTree, ab as html, ac as parseMixed, V as ExternalTokenizer } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { a9 as EditorView, aa as EditorSelection, T as LRLanguage, O as styleTags, Q as tags, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, U as LanguageSupport, X as LRParser, $ as syntaxTree, ab as html, ac as parseMixed, V as ExternalTokenizer } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { O as styleTags, Q as tags, T as LRLanguage, U as LanguageSupport, X as LRParser, a4 as LocalTokenGroup, ab as html, ac as parseMixed, ae as javascriptLanguage } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { O as styleTags, Q as tags, T as LRLanguage, U as LanguageSupport, X as LRParser, a4 as LocalTokenGroup, ab as html, ac as parseMixed, ae as javascriptLanguage } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { V as ExternalTokenizer, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, ab as html, U as LanguageSupport, ac as parseMixed } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { V as ExternalTokenizer, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, ab as html, U as LanguageSupport, ac as parseMixed } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useReducer, useRef, useCallback, useLayoutEffect, Component, useContext, useState, useEffect, createContext, forwardRef, createElement, cloneElement, useMemo, Profiler, StrictMode } from 'react';
|
|
3
3
|
import ReactDOM__default from 'react-dom';
|
|
4
|
-
import {
|
|
4
|
+
import { Z as isSymbol, $ as toString, a0 as keys, a1 as getSymbols$1, a2 as stubArray, a3 as arrayPush, a4 as baseGetAllKeys, g as getTag, a5 as getAllKeys, k as baseGet, c as baseIteratee, j as castPath, t as toKey, a6 as arrayMap$1, a7 as baseUniq, b as baseFlatten, a8 as useMustNotChange, a9 as useCurrentLayoutActions, aa as useCurrentLayoutSelector, r as reportError, A as AppError, L as Logger, u as useGuaranteedContext, ab as usePanelMosaicId, ac as useSelectedPanels, ad as PANEL_TITLE_CONFIG_KEY, ae as noop$4, o as getPanelTypeFromId, M as useShallowMemo, T as TAB_PANEL_TYPE, J as filterMap, d as dist$2, af as useAppConfiguration, ag as useValueChangedDebugLog, V as typescript, ah as useJsonTreeTheme } from './depth-CJRDcPfJ.js';
|
|
5
5
|
import { createStore, useStore } from 'zustand';
|
|
6
|
-
import { g as generateUtilityClass, c as createAggregator, f as flatRest, b as baseSet, A as AnalyticsContext, P as PropTypes, E as ErrorDisplay, S as Stack$1, m as makeStyles$1, _ as _extends$1, W as WorkspaceContext, u as useAnalytics, a as AppEvent, L as LeftSidebarItemKeys, R as RightSidebarItemKeys, d as useTranslation, e as usePanelCatalog, h as EmptyState, i as isEmpty, j as PanelContext, k as PanelCatalogContext, l as usePanelStateStore, n as useDefaultPanelTitle, o as useWorkspaceStore, p as WorkspaceStoreSelectors, q as difference, r as usePanelContext, s as useMessagePipeline, v as v4, t as useHoverValue, w as useSetHoverValue, x as useClearHoverValue, y as useMessagePipelineGetter, z as usePanelSettingsTreeUpdate, B as PlayerCapabilities, C as assertNever, D as PlayerPresence, F as isEqual, G as isDesktopApp, H as createTheme, I as propTypesExports, J as DEFAULT_CAMERA_STATE$1 } from './index-
|
|
6
|
+
import { g as generateUtilityClass, c as createAggregator, f as flatRest, b as baseSet, A as AnalyticsContext, P as PropTypes, E as ErrorDisplay, S as Stack$1, m as makeStyles$1, _ as _extends$1, W as WorkspaceContext, u as useAnalytics, a as AppEvent, L as LeftSidebarItemKeys, R as RightSidebarItemKeys, d as useTranslation, e as usePanelCatalog, h as EmptyState, i as isEmpty, j as PanelContext, k as PanelCatalogContext, l as usePanelStateStore, n as useDefaultPanelTitle, o as useWorkspaceStore, p as WorkspaceStoreSelectors, q as difference, r as usePanelContext, s as useMessagePipeline, v as v4, t as useHoverValue, w as useSetHoverValue, x as useClearHoverValue, y as useMessagePipelineGetter, z as usePanelSettingsTreeUpdate, B as PlayerCapabilities, C as assertNever, D as PlayerPresence, F as isEqual, G as isDesktopApp, H as createTheme, I as propTypesExports, J as DEFAULT_CAMERA_STATE$1 } from './index-BufdvuOr.js';
|
|
7
7
|
import { MosaicDragType, MosaicContext, MosaicWindowContext, getOtherBranch, getNodeAtPath } from 'react-mosaic-component';
|
|
8
|
-
import { t as typescript } from './useMessageReducer-DdY2kZpp.js';
|
|
9
8
|
import { g as getDefaultExportFromCjs, c as commonjsGlobal, d as getAugmentedNamespace } from './protobuf-B55JS-Px.js';
|
|
10
9
|
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, alertClasses, darken, lighten, inputBaseClasses, autocompleteClasses, inputClasses, Checkbox, dialogActionsClasses, filledInputClasses, inputAdornmentClasses, listSubheaderClasses, selectClasses, tableCellClasses, ThemeProvider as ThemeProvider$1, SvgIcon, tabsClasses as tabsClasses$1, tabClasses, Tabs, Tab, ListItemIcon } from '@mui/material';
|
|
11
10
|
import { c as copyObject, k as keysIn, g as getPrototype, d as cloneArrayBuffer, e as cloneTypedArray, f as copyArray, h as cloneBuffer, j as initCloneObject, a as assignValue, b as baseAssignValue, l as isPlainObject$1, t as tinycolor, n as t$1, m as merge$1, i as instance } from './i18next-IYI3-Nuv.js';
|
|
@@ -72606,7 +72605,7 @@ function RendererOverlay(props) {
|
|
|
72606
72605
|
}
|
|
72607
72606
|
}), /*#__PURE__*/React__default.createElement(HUD, {
|
|
72608
72607
|
renderer: renderer
|
|
72609
|
-
}), stats, resetViewButton);
|
|
72608
|
+
}), stats, resetViewButton, props.customOverlay);
|
|
72610
72609
|
}
|
|
72611
72610
|
|
|
72612
72611
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
@@ -74636,6 +74635,31 @@ class Renderer extends EventEmitter {
|
|
|
74636
74635
|
log$1.debug(`Clicked ${selections.length} renderable(s)`);
|
|
74637
74636
|
this.emit("renderablesClicked", selections, cursorCoords, this);
|
|
74638
74637
|
};
|
|
74638
|
+
handleClickEvent = cursorCoords => {
|
|
74639
|
+
// Pick a single renderable, hide it, re-render, and run picking again until
|
|
74640
|
+
// the backdrop is hit or we exceed MAX_SELECTIONS
|
|
74641
|
+
const camera = this.cameraHandler.getActiveCamera();
|
|
74642
|
+
const selections = [];
|
|
74643
|
+
let curSelection;
|
|
74644
|
+
while ((curSelection = this.#pickSingleObject(cursorCoords)) && selections.length < MAX_SELECTIONS) {
|
|
74645
|
+
selections.push(curSelection);
|
|
74646
|
+
// If debugPicking is on, we don't want to overwrite the hitmap by doing more iterations
|
|
74647
|
+
if (this.debugPicking) {
|
|
74648
|
+
break;
|
|
74649
|
+
}
|
|
74650
|
+
curSelection.renderable.visible = false;
|
|
74651
|
+
this.gl.render(this.#scene, camera);
|
|
74652
|
+
}
|
|
74653
|
+
|
|
74654
|
+
// Put everything back to normal and render one last frame
|
|
74655
|
+
for (const selection of selections) {
|
|
74656
|
+
selection.renderable.visible = true;
|
|
74657
|
+
}
|
|
74658
|
+
if (!this.debugPicking) {
|
|
74659
|
+
this.animationFrame();
|
|
74660
|
+
}
|
|
74661
|
+
return selections;
|
|
74662
|
+
};
|
|
74639
74663
|
#handleFrameTransform = ({
|
|
74640
74664
|
message
|
|
74641
74665
|
}) => {
|
|
@@ -74743,7 +74767,7 @@ class Renderer extends EventEmitter {
|
|
|
74743
74767
|
disableSetViewOffset: this.interfaceMode === "image"
|
|
74744
74768
|
});
|
|
74745
74769
|
if (objectId === -1) {
|
|
74746
|
-
log
|
|
74770
|
+
// log.debug("Picking did not return an object");
|
|
74747
74771
|
return undefined;
|
|
74748
74772
|
}
|
|
74749
74773
|
|
|
@@ -74763,7 +74787,9 @@ class Renderer extends EventEmitter {
|
|
|
74763
74787
|
log$1.warn(`No Renderable found for objectId ${objectId} (name="${pickedObject?.name}" uuid=${pickedObject?.uuid})`);
|
|
74764
74788
|
return undefined;
|
|
74765
74789
|
}
|
|
74766
|
-
|
|
74790
|
+
|
|
74791
|
+
// log.debug(`Picking pass returned ${renderable.id} (${renderable.name})`, renderable);
|
|
74792
|
+
|
|
74767
74793
|
let instanceIndex;
|
|
74768
74794
|
if (renderable.pickableInstances) {
|
|
74769
74795
|
instanceIndex = this.#picker.pickInstance(cursorCoords.x, cursorCoords.y, this.cameraHandler.getActiveCamera(), renderable, {
|
|
@@ -74771,7 +74797,7 @@ class Renderer extends EventEmitter {
|
|
|
74771
74797
|
disableSetViewOffset: this.interfaceMode === "image"
|
|
74772
74798
|
});
|
|
74773
74799
|
instanceIndex = instanceIndex === -1 ? undefined : instanceIndex;
|
|
74774
|
-
log
|
|
74800
|
+
//log.debug("Instance picking pass on", renderable, "returned", instanceIndex);
|
|
74775
74801
|
}
|
|
74776
74802
|
return {
|
|
74777
74803
|
renderable,
|
|
@@ -74858,6 +74884,40 @@ class Renderer extends EventEmitter {
|
|
|
74858
74884
|
setAnalytics(analytics) {
|
|
74859
74885
|
this.analytics = analytics;
|
|
74860
74886
|
}
|
|
74887
|
+
getLocalClickCoords(event, picked) {
|
|
74888
|
+
// 1. Get canvas-relative coordinates
|
|
74889
|
+
const rect = this.#canvas.getBoundingClientRect();
|
|
74890
|
+
const x = (event.clientX - rect.left) / rect.width * 2 - 1;
|
|
74891
|
+
const y = -((event.clientY - rect.top) / rect.height) * 2 + 1;
|
|
74892
|
+
|
|
74893
|
+
// 2. Create a ray from the camera through the click point
|
|
74894
|
+
const ndc = new Vector2(x, y);
|
|
74895
|
+
const raycaster = new Raycaster();
|
|
74896
|
+
raycaster.setFromCamera(ndc, this.cameraHandler.getActiveCamera());
|
|
74897
|
+
|
|
74898
|
+
// 3. Intersect with the picked object
|
|
74899
|
+
const intersects = raycaster.intersectObject(picked, true);
|
|
74900
|
+
if (intersects.length === 0) {
|
|
74901
|
+
return null;
|
|
74902
|
+
}
|
|
74903
|
+
|
|
74904
|
+
// 4. Get the intersection point in local space
|
|
74905
|
+
const intersection = intersects[0];
|
|
74906
|
+
const localPoint = picked.worldToLocal(intersection.point.clone());
|
|
74907
|
+
|
|
74908
|
+
// 5. Normalize localPoint to [0, 1] based on the bounding box
|
|
74909
|
+
const box = new Box3().setFromObject(picked);
|
|
74910
|
+
const size = new Vector3();
|
|
74911
|
+
box.getSize(size);
|
|
74912
|
+
|
|
74913
|
+
// Avoid division by zero
|
|
74914
|
+
const norm = (val, min, max) => max - min === 0 ? 0.5 : (val - min) / (max - min);
|
|
74915
|
+
return {
|
|
74916
|
+
x: norm(localPoint.x, box.min.x, box.max.x),
|
|
74917
|
+
y: norm(localPoint.y, box.min.y, box.max.y),
|
|
74918
|
+
z: norm(localPoint.z, box.min.z, box.max.z)
|
|
74919
|
+
};
|
|
74920
|
+
}
|
|
74861
74921
|
}
|
|
74862
74922
|
function queueMessage(messageEvent, subscriptions) {
|
|
74863
74923
|
if (subscriptions) {
|
|
@@ -78089,7 +78149,8 @@ function ThreeDeeRender(props) {
|
|
|
78089
78149
|
testOptions,
|
|
78090
78150
|
customSceneExtensions,
|
|
78091
78151
|
frameRenderedEvent,
|
|
78092
|
-
annotationReceivedEventHandler
|
|
78152
|
+
annotationReceivedEventHandler,
|
|
78153
|
+
customOverlay
|
|
78093
78154
|
} = props;
|
|
78094
78155
|
const {
|
|
78095
78156
|
initialState,
|
|
@@ -78157,10 +78218,14 @@ function ThreeDeeRender(props) {
|
|
|
78157
78218
|
annotationReceivedEventHandler
|
|
78158
78219
|
}) : undefined;
|
|
78159
78220
|
setRenderer(newRenderer);
|
|
78221
|
+
props.registerRendered?.(newRenderer);
|
|
78160
78222
|
rendererRef.current = newRenderer;
|
|
78161
78223
|
return () => {
|
|
78162
78224
|
rendererRef.current?.dispose();
|
|
78163
78225
|
rendererRef.current = undefined;
|
|
78226
|
+
if (props.unregisterRendered) {
|
|
78227
|
+
props.unregisterRendered();
|
|
78228
|
+
}
|
|
78164
78229
|
};
|
|
78165
78230
|
}, [canvas, configRef, config.scene.transforms?.enablePreloading, customSceneExtensions, interfaceMode, fetchAsset, testOptions, displayTemporaryError]);
|
|
78166
78231
|
useEffect(() => {
|
|
@@ -78688,12 +78753,41 @@ function ThreeDeeRender(props) {
|
|
|
78688
78753
|
// The 3d panel only supports publishing to ros1 and ros2 data sources
|
|
78689
78754
|
const isRosDataSource = context.dataSourceProfile === "ros1" || context.dataSourceProfile === "ros2";
|
|
78690
78755
|
const canPublish = context.publish != undefined && isRosDataSource;
|
|
78756
|
+
const getClickOffsetCoords = useCallback(event => {
|
|
78757
|
+
if (!canvas || !renderer) return;
|
|
78758
|
+
|
|
78759
|
+
// Get the canvas bounding rectangle
|
|
78760
|
+
const canvasRect = canvas.getBoundingClientRect();
|
|
78761
|
+
|
|
78762
|
+
// Convert click position to canvas-relative coordinates
|
|
78763
|
+
const offsetX = event.clientX - canvasRect.left;
|
|
78764
|
+
const offsetY = event.clientY - canvasRect.top;
|
|
78765
|
+
|
|
78766
|
+
// Get Three.js clicked object (This should be the background for depth stream)
|
|
78767
|
+
const selectedObject = renderer.handleClickEvent(new Vector2(offsetX, offsetY)).at(0);
|
|
78768
|
+
if (!selectedObject) {
|
|
78769
|
+
console.warn("No renderable found at click position");
|
|
78770
|
+
return;
|
|
78771
|
+
}
|
|
78772
|
+
|
|
78773
|
+
// Calculate the percentage offset coordinates relative to the renderable
|
|
78774
|
+
// This is number from <0, 1> range and can be used to map click position to depth data
|
|
78775
|
+
const percentageOffsetCoordinates = renderer.getLocalClickCoords(event, selectedObject.renderable);
|
|
78776
|
+
if (!percentageOffsetCoordinates) {
|
|
78777
|
+
console.error("Failed to calculate relative click coordinates");
|
|
78778
|
+
return;
|
|
78779
|
+
}
|
|
78780
|
+
return {
|
|
78781
|
+
offsetX: percentageOffsetCoordinates.x,
|
|
78782
|
+
offsetY: percentageOffsetCoordinates.y
|
|
78783
|
+
};
|
|
78784
|
+
}, [canvas, renderer]);
|
|
78691
78785
|
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
78692
78786
|
isDark: colorScheme === "dark"
|
|
78693
78787
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
78694
78788
|
style: PANEL_STYLE,
|
|
78695
78789
|
onKeyDown: onKeyDown
|
|
78696
|
-
}, /*#__PURE__*/React__default.createElement("canvas", {
|
|
78790
|
+
}, customOverlay, /*#__PURE__*/React__default.createElement("canvas", {
|
|
78697
78791
|
ref: setCanvas,
|
|
78698
78792
|
style: {
|
|
78699
78793
|
position: "absolute",
|
|
@@ -78702,6 +78796,12 @@ function ThreeDeeRender(props) {
|
|
|
78702
78796
|
...((measureActive || publishActive) && {
|
|
78703
78797
|
cursor: "crosshair"
|
|
78704
78798
|
})
|
|
78799
|
+
},
|
|
78800
|
+
onClick: event => {
|
|
78801
|
+
if (props.handleOnClick) {
|
|
78802
|
+
const clickOffsetCoords = getClickOffsetCoords(event);
|
|
78803
|
+
props.handleOnClick(event, clickOffsetCoords);
|
|
78804
|
+
}
|
|
78705
78805
|
}
|
|
78706
78806
|
}), /*#__PURE__*/React__default.createElement(RendererContext.Provider, {
|
|
78707
78807
|
value: renderer
|
|
@@ -78727,6 +78827,10 @@ function ThreeDeeRender(props) {
|
|
|
78727
78827
|
}))));
|
|
78728
78828
|
}
|
|
78729
78829
|
|
|
78830
|
+
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
78831
|
+
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
78832
|
+
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
78833
|
+
|
|
78730
78834
|
function initPanel(args, context) {
|
|
78731
78835
|
const {
|
|
78732
78836
|
crash,
|
|
@@ -78735,7 +78839,11 @@ function initPanel(args, context) {
|
|
|
78735
78839
|
testOptions,
|
|
78736
78840
|
customSceneExtensions,
|
|
78737
78841
|
frameRenderedEvent,
|
|
78738
|
-
annotationReceivedEventHandler
|
|
78842
|
+
annotationReceivedEventHandler,
|
|
78843
|
+
handleOnClick,
|
|
78844
|
+
registerRendered,
|
|
78845
|
+
unregisterRendered,
|
|
78846
|
+
customOverlay
|
|
78739
78847
|
} = args;
|
|
78740
78848
|
// eslint-disable-next-line react/no-deprecated
|
|
78741
78849
|
ReactDOM__default.render( /*#__PURE__*/React__default.createElement(StrictMode, null, /*#__PURE__*/React__default.createElement(CaptureErrorBoundary, {
|
|
@@ -78748,7 +78856,11 @@ function initPanel(args, context) {
|
|
|
78748
78856
|
testOptions: testOptions,
|
|
78749
78857
|
customSceneExtensions: customSceneExtensions,
|
|
78750
78858
|
frameRenderedEvent: frameRenderedEvent ? () => frameRenderedEvent(0) : undefined,
|
|
78751
|
-
annotationReceivedEventHandler: annotationReceivedEventHandler
|
|
78859
|
+
annotationReceivedEventHandler: annotationReceivedEventHandler,
|
|
78860
|
+
handleOnClick: handleOnClick,
|
|
78861
|
+
registerRendered: registerRendered,
|
|
78862
|
+
unregisterRendered: unregisterRendered,
|
|
78863
|
+
customOverlay: customOverlay
|
|
78752
78864
|
})))), context.panelElement);
|
|
78753
78865
|
return () => {
|
|
78754
78866
|
// eslint-disable-next-line react/no-deprecated
|
|
@@ -78778,8 +78890,12 @@ function ThreeDeeRenderAdapter(interfaceMode, props) {
|
|
|
78778
78890
|
},
|
|
78779
78891
|
customSceneExtensions,
|
|
78780
78892
|
frameRenderedEvent: props.frameRenderedEvent,
|
|
78781
|
-
annotationReceivedEventHandler: props.annotationReceivedEventHandler
|
|
78782
|
-
|
|
78893
|
+
annotationReceivedEventHandler: props.annotationReceivedEventHandler,
|
|
78894
|
+
handleOnClick: props.handleOnClick,
|
|
78895
|
+
registerRendered: props.registerRendered,
|
|
78896
|
+
unregisterRendered: props.unregisterRendered,
|
|
78897
|
+
customOverlay: props.customOverlay
|
|
78898
|
+
}), [crash, forwardedAnalytics, interfaceMode, props.onDownloadImage, props.debugPicking, props.frameRenderedEvent, props.annotationReceivedEventHandler, props.handleOnClick, customSceneExtensions]);
|
|
78783
78899
|
return /*#__PURE__*/React__default.createElement(PanelExtensionAdapter, {
|
|
78784
78900
|
config: props.config,
|
|
78785
78901
|
highestSupportedConfigVersion: 1,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { T as LRLanguage, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, O as styleTags, Q as tags, U as LanguageSupport, X as LRParser } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { T as LRLanguage, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, O as styleTags, Q as tags, U as LanguageSupport, X as LRParser } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { V as ExternalTokenizer, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, a0 as flatIndent, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { V as ExternalTokenizer, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, a0 as flatIndent, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { V as ExternalTokenizer, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { V as ExternalTokenizer, O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ImagePanel } from './index-
|
|
1
|
+
import { ImagePanel } from './index-CuAv3dv7.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
|
-
import './
|
|
5
|
-
import 'react-mosaic-component';
|
|
4
|
+
import './depth-CJRDcPfJ.js';
|
|
6
5
|
import './protobuf-B55JS-Px.js';
|
|
7
6
|
import 'protobufjs/minimal';
|
|
7
|
+
import 'zustand';
|
|
8
|
+
import 'react-mosaic-component';
|
|
8
9
|
import '@mui/material';
|
|
9
10
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
10
|
-
import '
|
|
11
|
-
import './index-fYQyZr0d.js';
|
|
11
|
+
import './index-BufdvuOr.js';
|
|
12
12
|
import './comlink-DHMAu6X7.js';
|
|
13
13
|
import './utils-Hzt3wxhG.js';
|
|
14
14
|
import './FoxgloveServer-MMAMiqqQ.js';
|
|
@@ -25,7 +25,6 @@ import 'react-syntax-highlighter';
|
|
|
25
25
|
import 'extend';
|
|
26
26
|
import 'react-icons';
|
|
27
27
|
import '@pandacss/dev';
|
|
28
|
-
import './useMessageReducer-DdY2kZpp.js';
|
|
29
28
|
import '@mui/icons-material/FullscreenExit';
|
|
30
29
|
import '@mui/icons-material/Settings';
|
|
31
30
|
import '@mui/icons-material/ChevronRight';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { O as styleTags, Q as tags, X as LRParser, T as LRLanguage, K as indentNodeProp, M as continuedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, $ as syntaxTree, Y as ifNotIn, T as LRLanguage, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport, a6 as IterMode, Z as completeFromList, a7 as NodeWeakMap, a5 as snippetCompletion } from './index-
|
|
2
|
-
import './
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
1
|
+
import { V as ExternalTokenizer, a3 as ContextTracker, O as styleTags, Q as tags, X as LRParser, $ as syntaxTree, Y as ifNotIn, T as LRLanguage, K as indentNodeProp, a1 as delimitedIndent, N as foldNodeProp, a2 as foldInside, U as LanguageSupport, a6 as IterMode, Z as completeFromList, a7 as NodeWeakMap, a5 as snippetCompletion } from './index-BufdvuOr.js';
|
|
2
|
+
import './depth-CJRDcPfJ.js';
|
|
5
3
|
import './protobuf-B55JS-Px.js';
|
|
6
4
|
import 'protobufjs/minimal';
|
|
5
|
+
import 'react';
|
|
6
|
+
import 'zustand';
|
|
7
|
+
import 'react-mosaic-component';
|
|
7
8
|
import '@mui/material';
|
|
8
9
|
import './isArrayLikeObject-Bytw9p-q.js';
|
|
9
10
|
import './comlink-DHMAu6X7.js';
|
|
@@ -16,7 +17,6 @@ import 'react-dnd-html5-backend';
|
|
|
16
17
|
import './i18next-IYI3-Nuv.js';
|
|
17
18
|
import '@emotion/react';
|
|
18
19
|
import 'object-assign';
|
|
19
|
-
import 'zustand';
|
|
20
20
|
import 'react/jsx-runtime';
|
|
21
21
|
import 'react-dom';
|
|
22
22
|
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { ai as ImagePanel, ah as PanelLayout, aj as PointCloudPanel, af as VisualizerConnection, ag as VisualizerContext, al as globalDecodeMetricsManager, ak as globalInputEventMetricsManager, am as globalRenderMetricsManager, an as globalThroughputMetricsManager } from './index-
|
|
2
|
-
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-mosaic-component';
|
|
5
|
-
import './protobuf-B55JS-Px.js';
|
|
6
|
-
import 'protobufjs/minimal';
|
|
7
|
-
import '@mui/material';
|
|
8
|
-
import './isArrayLikeObject-Bytw9p-q.js';
|
|
1
|
+
export { ao as FrameStore, ai as ImagePanel, ah as PanelLayout, aj as PointCloudPanel, af as VisualizerConnection, ag as VisualizerContext, al as globalDecodeMetricsManager, ak as globalInputEventMetricsManager, am as globalRenderMetricsManager, an as globalThroughputMetricsManager } from './index-BufdvuOr.js';
|
|
2
|
+
export { S as getDistanceFromDepthDataForOffset } from './depth-CJRDcPfJ.js';
|
|
9
3
|
import './comlink-DHMAu6X7.js';
|
|
10
4
|
import './utils-Hzt3wxhG.js';
|
|
5
|
+
import './protobuf-B55JS-Px.js';
|
|
6
|
+
import 'protobufjs/minimal';
|
|
11
7
|
import './FoxgloveServer-MMAMiqqQ.js';
|
|
12
8
|
import 'ms';
|
|
9
|
+
import 'react';
|
|
13
10
|
import './foxglove-protocol-CtwNj7ND.js';
|
|
14
11
|
import 'react-dnd';
|
|
15
12
|
import 'react-dnd-html5-backend';
|
|
13
|
+
import 'react-mosaic-component';
|
|
14
|
+
import '@mui/material';
|
|
16
15
|
import './i18next-IYI3-Nuv.js';
|
|
16
|
+
import './isArrayLikeObject-Bytw9p-q.js';
|
|
17
17
|
import '@emotion/react';
|
|
18
18
|
import 'object-assign';
|
|
19
19
|
import 'zustand';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MutableRefObject } from "react";
|
|
2
2
|
import type { ProtobufKind } from "../messaging/protobuf.js";
|
|
3
3
|
import "../fonts/fonts.css";
|
|
4
|
+
import { Renderer } from "@foxglove/studio-base/panels/ThreeDeeRender/Renderer";
|
|
4
5
|
export type PanelTopic = {
|
|
5
6
|
name: string;
|
|
6
7
|
extra: boolean;
|
|
@@ -22,6 +23,8 @@ export type PanelProps = React.PropsWithChildren<{
|
|
|
22
23
|
moveUp?: () => void;
|
|
23
24
|
canMoveDown?: boolean;
|
|
24
25
|
moveDown?: () => void;
|
|
26
|
+
registerRendered?: (renderer: Renderer) => void;
|
|
27
|
+
unregisterRendered?: () => void;
|
|
25
28
|
}>;
|
|
26
29
|
export type PanelDetections = Record<string, boolean>;
|
|
27
30
|
export type AllDetections = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../src/components/Panel.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,OAAO,CAAC;AAO3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../../src/components/Panel.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAoB,MAAM,OAAO,CAAC;AAO3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sDAAsD,CAAC;AAEhF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EA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,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,UAAU,EAAE,YAC9C,mBACE,SAAS,EAAC,sFAAsF,EAChG,GAAG,EAAE,UAAU,aAEd,CAAC,WAAW,IAAI,CACf,KAAC,YAAY,IACX,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,4BAA4B,EAC9C,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,iBAAiB,EACf,UAAU,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,EAEjF,YAAY,EAAE,IAAI,KAAK,YAAY,GACnC,CACH,EAED,KAAC,QAAQ,IACP,QAAQ,EACN,KAAC,UAAU,cACT,uCAAqB,GACV,YAGf,KAAC,oBAAoB,IAAC,KAAK,EAAE,UAAU,YAAG,QAAQ,GAAwB,GACjE,IACH,GACgB,GACd,GACK,CACxB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -57,7 +57,7 @@ export declare abstract class FoxgloveConnection {
|
|
|
57
57
|
getTopicMetrics(topic: string): Metrics;
|
|
58
58
|
protected getCurrentTime(): Time;
|
|
59
59
|
protected onMessagePacket(event: globalThis.MessageEvent<FoxgloveMessage>, errorCallback?: DeserializationErrorCallback): void;
|
|
60
|
-
protected
|
|
60
|
+
protected submitPointcloudFrameCallback(coloredEvent: MessageEvent, poitcloudFrame: PointCloudWithDimensions, message: unknown): void;
|
|
61
61
|
protected handleParsePoitcloudMessage(coloredEvent: MessageEvent): Promise<void>;
|
|
62
62
|
protected parseResolutionFromMessage(message: unknown, topic: string): {
|
|
63
63
|
width: number | undefined;
|