@luxonis/visualizer-protobuf 2.9.0 → 2.10.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/{index-Cb90aMCQ.js → index-BkJzswV4.js} +1 -1
- package/dist/{index-BmhmQhUY.js → index-BoEGkJ9p.js} +1 -1
- package/dist/{index-BtNLyasn.js → index-Bqn7UHng.js} +1 -1
- package/dist/{index-BQvOIOZ5.js → index-CLXrWh9u.js} +1 -1
- package/dist/{index-DZcFQv37.js → index-COYuWtSj.js} +1 -1
- package/dist/{index-kkypPRzs.js → index-CWBrg8SG.js} +1 -1
- package/dist/{index-DBgBbKwc.js → index-Cn3Gj8Ni.js} +1 -1
- package/dist/{index-BmhyVCYM.js → index-CqFTZA40.js} +2 -2
- package/dist/{index-H6bfpOj5.js → index-CvBlFw7r.js} +1 -1
- package/dist/{index-5tCx65AD.js → index-Cw2z-Whb.js} +1 -1
- package/dist/{index-Bbhryltd.js → index-Cy0wWrv7.js} +1 -1
- package/dist/{index-OOUXaabA.js → index-DSxUe9ba.js} +1 -1
- package/dist/{index-ZFv5Iye5.js → index-DvOwVfGh.js} +1 -1
- package/dist/{index-B5_FWrun.js → index-FcNScG1k.js} +1 -1
- package/dist/{index-DgIQsWdr.js → index-RQW3TiLE.js} +1 -1
- package/dist/{index-CwTRju_D.js → index-XGPq57tr.js} +132 -29
- package/dist/{index-CcXlzx6H.js → index-o_ka9Ogg.js} +1 -1
- package/dist/{index-49Qncbi7.js → index-ttUzLary.js} +1 -1
- package/dist/{index-D5zNzkOr.js → index-zXxLQfZZ.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/src/messaging/deserialization/detections/constants.d.ts +1 -0
- package/dist/lib/src/messaging/deserialization/detections/constants.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/constants.js +2 -1
- package/dist/lib/src/messaging/deserialization/detections/constants.js.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/custom.d.ts +3 -3
- package/dist/lib/src/messaging/deserialization/detections/custom.d.ts.map +1 -1
- package/dist/lib/src/messaging/deserialization/detections/custom.js +87 -9
- package/dist/lib/src/messaging/deserialization/detections/custom.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as styleTags, ar as tags, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, aH as defineCSSCompletionSource, at as LanguageSupport, av as LRParser, au as ExternalTokenizer } from './index-
|
|
1
|
+
import { aq as styleTags, ar as tags, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, aH as defineCSSCompletionSource, at as LanguageSupport, av as LRParser, au as ExternalTokenizer } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { i as isSymbol, t as toString, k as keys, g as getSymbols$1, s as stubArray, a as arrayPush, b as baseGetAllKeys, c as getTag, d as getAllKeys, e as createAggregator, f as baseGet, h as baseIteratee, j as castPath, l as toKey, m as flatRest, n as arrayMap$1, o as baseSet, p as baseUniq, q as baseFlatten, r as generateUtilityClass, A as AnalyticsContext, u as useMustNotChange, P as PropTypes, v as useCurrentLayoutActions, w as useCurrentLayoutSelector, x as reportError, y as AppError, E as ErrorDisplay, S as Stack$1, z as makeStyles$1, _ as _extends$1, L as Logger, B as useGuaranteedContext, W as WorkspaceContext, C as useAnalytics, D as AppEvent, F as LeftSidebarItemKeys, R as RightSidebarItemKeys, G as usePanelMosaicId, H as useTranslation, I as usePanelCatalog, J as EmptyState, K as isEmpty, M as PanelContext, N as PanelCatalogContext, O as useSelectedPanels, Q as usePanelStateStore, T as useDefaultPanelTitle, U as PANEL_TITLE_CONFIG_KEY, V as noop$4, X as getPanelTypeFromId, Y as useWorkspaceStore, Z as useShallowMemo, $ as TAB_PANEL_TYPE, a0 as WorkspaceStoreSelectors, a1 as difference, a2 as filterMap, a3 as dist$3, a4 as usePanelContext, a5 as useMessagePipeline, a6 as v4, a7 as useHoverValue, a8 as useSetHoverValue, a9 as useClearHoverValue, aa as useAppConfiguration, ab as useMessagePipelineGetter, ac as usePanelSettingsTreeUpdate, ad as PlayerCapabilities, ae as useValueChangedDebugLog, af as assertNever, ag as PlayerPresence, ah as typescript, ai as isEqual, aj as isDesktopApp, ak as createTheme, al as propTypesExports, am as useJsonTreeTheme } from './index-
|
|
4
|
+
import { i as isSymbol, t as toString, k as keys, g as getSymbols$1, s as stubArray, a as arrayPush, b as baseGetAllKeys, c as getTag, d as getAllKeys, e as createAggregator, f as baseGet, h as baseIteratee, j as castPath, l as toKey, m as flatRest, n as arrayMap$1, o as baseSet, p as baseUniq, q as baseFlatten, r as generateUtilityClass, A as AnalyticsContext, u as useMustNotChange, P as PropTypes, v as useCurrentLayoutActions, w as useCurrentLayoutSelector, x as reportError, y as AppError, E as ErrorDisplay, S as Stack$1, z as makeStyles$1, _ as _extends$1, L as Logger, B as useGuaranteedContext, W as WorkspaceContext, C as useAnalytics, D as AppEvent, F as LeftSidebarItemKeys, R as RightSidebarItemKeys, G as usePanelMosaicId, H as useTranslation, I as usePanelCatalog, J as EmptyState, K as isEmpty, M as PanelContext, N as PanelCatalogContext, O as useSelectedPanels, Q as usePanelStateStore, T as useDefaultPanelTitle, U as PANEL_TITLE_CONFIG_KEY, V as noop$4, X as getPanelTypeFromId, Y as useWorkspaceStore, Z as useShallowMemo, $ as TAB_PANEL_TYPE, a0 as WorkspaceStoreSelectors, a1 as difference, a2 as filterMap, a3 as dist$3, a4 as usePanelContext, a5 as useMessagePipeline, a6 as v4, a7 as useHoverValue, a8 as useSetHoverValue, a9 as useClearHoverValue, aa as useAppConfiguration, ab as useMessagePipelineGetter, ac as usePanelSettingsTreeUpdate, ad as PlayerCapabilities, ae as useValueChangedDebugLog, af as assertNever, ag as PlayerPresence, ah as typescript, ai as isEqual, aj as isDesktopApp, ak as createTheme, al as propTypesExports, am as useJsonTreeTheme } from './index-XGPq57tr.js';
|
|
5
5
|
import { createStore, useStore } from 'zustand';
|
|
6
6
|
import { MosaicDragType, MosaicContext, MosaicWindowContext, getOtherBranch, getNodeAtPath } from 'react-mosaic-component';
|
|
7
7
|
import { a as getDefaultExportFromCjs, c as commonjsGlobal, g as getAugmentedNamespace, E as EventEmitter } from './FoxgloveServer-DiLI7KZU.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aL as parseMixed } from './index-
|
|
1
|
+
import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aL as parseMixed } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-
|
|
1
|
+
import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, aD as LocalTokenGroup, aE as snippetCompletion, ay as syntaxTree, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aw as ifNotIn, ax as completeFromList, aF as IterMode, aG as NodeWeakMap } from './index-
|
|
1
|
+
import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, aD as LocalTokenGroup, aE as snippetCompletion, ay as syntaxTree, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aw as ifNotIn, ax as completeFromList, aF as IterMode, aG as NodeWeakMap } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, ap as foldNodeProp, aB as foldInside, an as indentNodeProp, ao as continuedIndent, aH as defineCSSCompletionSource, at as LanguageSupport } from './index-
|
|
1
|
+
import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, ap as foldNodeProp, aB as foldInside, an as indentNodeProp, ao as continuedIndent, aH as defineCSSCompletionSource, at as LanguageSupport } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, aq as styleTags, ar as tags, at as LanguageSupport, av as LRParser } from './index-
|
|
1
|
+
import { as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, aq as styleTags, ar as tags, at as LanguageSupport, av as LRParser } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ImagePanel } from './index-
|
|
1
|
+
import { ImagePanel } from './index-BoEGkJ9p.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
4
|
-
import './index-
|
|
4
|
+
import './index-XGPq57tr.js';
|
|
5
5
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
6
6
|
import 'protobufjs/minimal';
|
|
7
7
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as styleTags, ar as tags, as as LRLanguage, at as LanguageSupport, av as LRParser, aD as LocalTokenGroup, aK as html, aL as parseMixed, aN as javascriptLanguage } from './index-
|
|
1
|
+
import { aq as styleTags, ar as tags, as as LRLanguage, at as LanguageSupport, av as LRParser, aD as LocalTokenGroup, aK as html, aL as parseMixed, aN as javascriptLanguage } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, ay as syntaxTree, aw as ifNotIn, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aF as IterMode, ax as completeFromList, aG as NodeWeakMap, aE as snippetCompletion } from './index-
|
|
1
|
+
import { au as ExternalTokenizer, aC as ContextTracker, aq as styleTags, ar as tags, av as LRParser, ay as syntaxTree, aw as ifNotIn, as as LRLanguage, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aF as IterMode, ax as completeFromList, aG as NodeWeakMap, aE as snippetCompletion } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aq as styleTags, ar as tags, as as LRLanguage, at as LanguageSupport, au as ExternalTokenizer, av as LRParser, aw as ifNotIn, ax as completeFromList, ay as syntaxTree } from './index-
|
|
1
|
+
import { an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aq as styleTags, ar as tags, as as LRLanguage, at as LanguageSupport, au as ExternalTokenizer, av as LRParser, aw as ifNotIn, ax as completeFromList, ay as syntaxTree } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-
|
|
1
|
+
import { aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-
|
|
1
|
+
import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-
|
|
1
|
+
import { aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, az as flatIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aI as EditorView, aJ as EditorSelection, as as LRLanguage, aq as styleTags, ar as tags, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, at as LanguageSupport, av as LRParser, ay as syntaxTree, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-
|
|
1
|
+
import { aI as EditorView, aJ as EditorSelection, as as LRLanguage, aq as styleTags, ar as tags, an as indentNodeProp, aA as delimitedIndent, ap as foldNodeProp, at as LanguageSupport, av as LRParser, ay as syntaxTree, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -2135,10 +2135,16 @@ const DETECTION_STYLE = [{
|
|
|
2135
2135
|
}];
|
|
2136
2136
|
const DEBUG_COLOR = {
|
|
2137
2137
|
r: 0,
|
|
2138
|
-
g:
|
|
2138
|
+
g: 0.5,
|
|
2139
2139
|
b: 0,
|
|
2140
2140
|
a: 1
|
|
2141
2141
|
};
|
|
2142
|
+
const TRANSPARENT_COLOR = {
|
|
2143
|
+
r: 0,
|
|
2144
|
+
g: 0,
|
|
2145
|
+
b: 0,
|
|
2146
|
+
a: 0
|
|
2147
|
+
};
|
|
2142
2148
|
const DEFAULT_STYLE = {
|
|
2143
2149
|
label: null,
|
|
2144
2150
|
...GROUP_COLORS.item
|
|
@@ -11031,26 +11037,123 @@ function deserializeImgDetectionsCustom({
|
|
|
11031
11037
|
const points = [];
|
|
11032
11038
|
const texts = [];
|
|
11033
11039
|
const circles = [];
|
|
11040
|
+
const baseHighlightConfigNoType = {
|
|
11041
|
+
timestamp: receiveTime,
|
|
11042
|
+
outline_colors: [],
|
|
11043
|
+
thickness: getBorderThickness(width, height),
|
|
11044
|
+
outline_color: DEBUG_COLOR,
|
|
11045
|
+
fill_color: TRANSPARENT_COLOR
|
|
11046
|
+
};
|
|
11047
|
+
const baseHighlightConfig = {
|
|
11048
|
+
...baseHighlightConfigNoType,
|
|
11049
|
+
type: typescript$1.PointsAnnotationType.LINE_LIST
|
|
11050
|
+
};
|
|
11034
11051
|
for (const annotations of message.annotations) {
|
|
11052
|
+
// We assume that the annotation is a rectangle with 4 points (0 - bottom left corner, 3 - top right corner)
|
|
11053
|
+
for (const point of annotations.points) {
|
|
11054
|
+
const annotationWidth = (point.points[2]?.x ?? 0) - (point.points[0]?.x ?? 0);
|
|
11055
|
+
const annotationHeight = (point.points[3]?.y ?? 0) - (point.points[0]?.y ?? 0);
|
|
11056
|
+
const highligtLength = 0.035;
|
|
11057
|
+
const highlightSizeX = Math.min(highligtLength, annotationWidth);
|
|
11058
|
+
const highlightSizeY = Math.min(highligtLength, annotationHeight);
|
|
11059
|
+
if (!point.points[0] || !point.points[1] || !point.points[2] || !point.points[3]) {
|
|
11060
|
+
return;
|
|
11061
|
+
}
|
|
11062
|
+
points.push({
|
|
11063
|
+
...baseHighlightConfig,
|
|
11064
|
+
points: [{
|
|
11065
|
+
...point.points[0]
|
|
11066
|
+
}, {
|
|
11067
|
+
x: point.points[0].x + highlightSizeX,
|
|
11068
|
+
y: point.points[0].y
|
|
11069
|
+
}]
|
|
11070
|
+
});
|
|
11071
|
+
points.push({
|
|
11072
|
+
...baseHighlightConfig,
|
|
11073
|
+
points: [{
|
|
11074
|
+
...point.points[0]
|
|
11075
|
+
}, {
|
|
11076
|
+
x: point.points[0].x,
|
|
11077
|
+
y: point.points[0].y + highlightSizeY
|
|
11078
|
+
}]
|
|
11079
|
+
});
|
|
11080
|
+
points.push({
|
|
11081
|
+
...baseHighlightConfig,
|
|
11082
|
+
points: [{
|
|
11083
|
+
...point.points[1]
|
|
11084
|
+
}, {
|
|
11085
|
+
x: point.points[1].x - highlightSizeX,
|
|
11086
|
+
y: point.points[1].y
|
|
11087
|
+
}]
|
|
11088
|
+
});
|
|
11089
|
+
points.push({
|
|
11090
|
+
...baseHighlightConfig,
|
|
11091
|
+
points: [{
|
|
11092
|
+
...point.points[1]
|
|
11093
|
+
}, {
|
|
11094
|
+
x: point.points[1].x,
|
|
11095
|
+
y: point.points[1].y + highlightSizeY
|
|
11096
|
+
}]
|
|
11097
|
+
});
|
|
11098
|
+
points.push({
|
|
11099
|
+
...baseHighlightConfig,
|
|
11100
|
+
points: [{
|
|
11101
|
+
...point.points[2]
|
|
11102
|
+
}, {
|
|
11103
|
+
x: point.points[2].x - highlightSizeX,
|
|
11104
|
+
y: point.points[2].y
|
|
11105
|
+
}]
|
|
11106
|
+
});
|
|
11107
|
+
points.push({
|
|
11108
|
+
...baseHighlightConfig,
|
|
11109
|
+
points: [{
|
|
11110
|
+
...point.points[2]
|
|
11111
|
+
}, {
|
|
11112
|
+
x: point.points[2].x,
|
|
11113
|
+
y: point.points[2].y - highlightSizeY
|
|
11114
|
+
}]
|
|
11115
|
+
});
|
|
11116
|
+
points.push({
|
|
11117
|
+
...baseHighlightConfig,
|
|
11118
|
+
points: [{
|
|
11119
|
+
...point.points[3]
|
|
11120
|
+
}, {
|
|
11121
|
+
x: point.points[3].x + highlightSizeX,
|
|
11122
|
+
y: point.points[3].y
|
|
11123
|
+
}]
|
|
11124
|
+
});
|
|
11125
|
+
points.push({
|
|
11126
|
+
...baseHighlightConfig,
|
|
11127
|
+
points: [{
|
|
11128
|
+
...point.points[3]
|
|
11129
|
+
}, {
|
|
11130
|
+
x: point.points[3].x,
|
|
11131
|
+
y: point.points[3].y - highlightSizeY
|
|
11132
|
+
}]
|
|
11133
|
+
});
|
|
11134
|
+
}
|
|
11035
11135
|
points.push(...annotations.points.map(annotation => ({
|
|
11036
11136
|
timestamp: receiveTime,
|
|
11037
|
-
type: annotation.type === PointsAnnotationType$2.UNRECOGNIZED ? typescript$1.PointsAnnotationType.UNKNOWN : Number(annotation.type),
|
|
11038
|
-
points: annotation.points,
|
|
11039
|
-
outline_color: annotation.outlineColor ?? DEFAULT_STYLE.outline,
|
|
11040
11137
|
outline_colors: [],
|
|
11041
|
-
|
|
11042
|
-
|
|
11138
|
+
thickness: getBorderThickness(width, height),
|
|
11139
|
+
outline_color: TRANSPARENT_COLOR,
|
|
11140
|
+
fill_color: DEFAULT_STYLE.fill,
|
|
11141
|
+
type: annotation.type === PointsAnnotationType$2.UNRECOGNIZED ? typescript$1.PointsAnnotationType.UNKNOWN : Number(annotation.type),
|
|
11142
|
+
points: annotation.points
|
|
11043
11143
|
})));
|
|
11044
11144
|
texts.push(...annotations.texts.map(annotation => ({
|
|
11045
11145
|
timestamp: receiveTime,
|
|
11046
|
-
position: annotation.position
|
|
11146
|
+
position: annotation.position ? {
|
|
11147
|
+
x: annotation.position.x + 0.005,
|
|
11148
|
+
y: annotation.position.y + 0.0275
|
|
11149
|
+
} : {
|
|
11047
11150
|
x: 0,
|
|
11048
11151
|
y: 0
|
|
11049
11152
|
},
|
|
11050
11153
|
text: annotation.text,
|
|
11051
11154
|
font_size: annotation.fontSize ?? getTextSize(width, height),
|
|
11052
|
-
text_color:
|
|
11053
|
-
background_color:
|
|
11155
|
+
text_color: DEFAULT_TEXT_COLOR,
|
|
11156
|
+
background_color: TRANSPARENT_COLOR
|
|
11054
11157
|
})));
|
|
11055
11158
|
circles.push(...annotations.circles.map(annotation => ({
|
|
11056
11159
|
timestamp: receiveTime,
|
|
@@ -90251,7 +90354,7 @@ function legacy(parser) {
|
|
|
90251
90354
|
return new LanguageSupport(StreamLanguage.define(parser));
|
|
90252
90355
|
}
|
|
90253
90356
|
function sql$1(dialectName) {
|
|
90254
|
-
return import('./index-
|
|
90357
|
+
return import('./index-Cy0wWrv7.js').then(m => m.sql({ dialect: m[dialectName] }));
|
|
90255
90358
|
}
|
|
90256
90359
|
/**
|
|
90257
90360
|
An array of language descriptions for known language packages.
|
|
@@ -90262,7 +90365,7 @@ const languages = [
|
|
|
90262
90365
|
name: "C",
|
|
90263
90366
|
extensions: ["c", "h", "ino"],
|
|
90264
90367
|
load() {
|
|
90265
|
-
return import('./index-
|
|
90368
|
+
return import('./index-CLXrWh9u.js').then(m => m.cpp());
|
|
90266
90369
|
}
|
|
90267
90370
|
}),
|
|
90268
90371
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90270,7 +90373,7 @@ const languages = [
|
|
|
90270
90373
|
alias: ["cpp"],
|
|
90271
90374
|
extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
|
|
90272
90375
|
load() {
|
|
90273
|
-
return import('./index-
|
|
90376
|
+
return import('./index-CLXrWh9u.js').then(m => m.cpp());
|
|
90274
90377
|
}
|
|
90275
90378
|
}),
|
|
90276
90379
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90290,7 +90393,7 @@ const languages = [
|
|
|
90290
90393
|
name: "Go",
|
|
90291
90394
|
extensions: ["go"],
|
|
90292
90395
|
load() {
|
|
90293
|
-
return import('./index-
|
|
90396
|
+
return import('./index-COYuWtSj.js').then(m => m.go());
|
|
90294
90397
|
}
|
|
90295
90398
|
}),
|
|
90296
90399
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90305,7 +90408,7 @@ const languages = [
|
|
|
90305
90408
|
name: "Java",
|
|
90306
90409
|
extensions: ["java"],
|
|
90307
90410
|
load() {
|
|
90308
|
-
return import('./index-
|
|
90411
|
+
return import('./index-FcNScG1k.js').then(m => m.java());
|
|
90309
90412
|
}
|
|
90310
90413
|
}),
|
|
90311
90414
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90321,7 +90424,7 @@ const languages = [
|
|
|
90321
90424
|
alias: ["json5"],
|
|
90322
90425
|
extensions: ["json", "map"],
|
|
90323
90426
|
load() {
|
|
90324
|
-
return import('./index-
|
|
90427
|
+
return import('./index-DSxUe9ba.js').then(m => m.json());
|
|
90325
90428
|
}
|
|
90326
90429
|
}),
|
|
90327
90430
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90335,14 +90438,14 @@ const languages = [
|
|
|
90335
90438
|
name: "LESS",
|
|
90336
90439
|
extensions: ["less"],
|
|
90337
90440
|
load() {
|
|
90338
|
-
return import('./index-
|
|
90441
|
+
return import('./index-BkJzswV4.js').then(m => m.less());
|
|
90339
90442
|
}
|
|
90340
90443
|
}),
|
|
90341
90444
|
/*@__PURE__*/LanguageDescription.of({
|
|
90342
90445
|
name: "Liquid",
|
|
90343
90446
|
extensions: ["liquid"],
|
|
90344
90447
|
load() {
|
|
90345
|
-
return import('./index-
|
|
90448
|
+
return import('./index-RQW3TiLE.js').then(m => m.liquid());
|
|
90346
90449
|
}
|
|
90347
90450
|
}),
|
|
90348
90451
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90368,7 +90471,7 @@ const languages = [
|
|
|
90368
90471
|
name: "PHP",
|
|
90369
90472
|
extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
|
|
90370
90473
|
load() {
|
|
90371
|
-
return import('./index-
|
|
90474
|
+
return import('./index-ttUzLary.js').then(m => m.php());
|
|
90372
90475
|
}
|
|
90373
90476
|
}),
|
|
90374
90477
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90385,28 +90488,28 @@ const languages = [
|
|
|
90385
90488
|
extensions: ["BUILD", "bzl", "py", "pyw"],
|
|
90386
90489
|
filename: /^(BUCK|BUILD)$/,
|
|
90387
90490
|
load() {
|
|
90388
|
-
return import('./index-
|
|
90491
|
+
return import('./index-Cw2z-Whb.js').then(m => m.python());
|
|
90389
90492
|
}
|
|
90390
90493
|
}),
|
|
90391
90494
|
/*@__PURE__*/LanguageDescription.of({
|
|
90392
90495
|
name: "Rust",
|
|
90393
90496
|
extensions: ["rs"],
|
|
90394
90497
|
load() {
|
|
90395
|
-
return import('./index-
|
|
90498
|
+
return import('./index-DvOwVfGh.js').then(m => m.rust());
|
|
90396
90499
|
}
|
|
90397
90500
|
}),
|
|
90398
90501
|
/*@__PURE__*/LanguageDescription.of({
|
|
90399
90502
|
name: "Sass",
|
|
90400
90503
|
extensions: ["sass"],
|
|
90401
90504
|
load() {
|
|
90402
|
-
return import('./index-
|
|
90505
|
+
return import('./index-CWBrg8SG.js').then(m => m.sass({ indented: true }));
|
|
90403
90506
|
}
|
|
90404
90507
|
}),
|
|
90405
90508
|
/*@__PURE__*/LanguageDescription.of({
|
|
90406
90509
|
name: "SCSS",
|
|
90407
90510
|
extensions: ["scss"],
|
|
90408
90511
|
load() {
|
|
90409
|
-
return import('./index-
|
|
90512
|
+
return import('./index-CWBrg8SG.js').then(m => m.sass());
|
|
90410
90513
|
}
|
|
90411
90514
|
}),
|
|
90412
90515
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90437,7 +90540,7 @@ const languages = [
|
|
|
90437
90540
|
name: "WebAssembly",
|
|
90438
90541
|
extensions: ["wat", "wast"],
|
|
90439
90542
|
load() {
|
|
90440
|
-
return import('./index-
|
|
90543
|
+
return import('./index-Cn3Gj8Ni.js').then(m => m.wast());
|
|
90441
90544
|
}
|
|
90442
90545
|
}),
|
|
90443
90546
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90445,7 +90548,7 @@ const languages = [
|
|
|
90445
90548
|
alias: ["rss", "wsdl", "xsd"],
|
|
90446
90549
|
extensions: ["xml", "xsl", "xsd", "svg"],
|
|
90447
90550
|
load() {
|
|
90448
|
-
return import('./index-
|
|
90551
|
+
return import('./index-zXxLQfZZ.js').then(m => m.xml());
|
|
90449
90552
|
}
|
|
90450
90553
|
}),
|
|
90451
90554
|
/*@__PURE__*/LanguageDescription.of({
|
|
@@ -90453,7 +90556,7 @@ const languages = [
|
|
|
90453
90556
|
alias: ["yml"],
|
|
90454
90557
|
extensions: ["yaml", "yml"],
|
|
90455
90558
|
load() {
|
|
90456
|
-
return import('./index-
|
|
90559
|
+
return import('./index-Bqn7UHng.js').then(m => m.yaml());
|
|
90457
90560
|
}
|
|
90458
90561
|
}),
|
|
90459
90562
|
// Legacy modes ported from CodeMirror 5
|
|
@@ -91249,13 +91352,13 @@ const languages = [
|
|
|
91249
91352
|
name: "Vue",
|
|
91250
91353
|
extensions: ["vue"],
|
|
91251
91354
|
load() {
|
|
91252
|
-
return import('./index-
|
|
91355
|
+
return import('./index-CvBlFw7r.js').then(m => m.vue());
|
|
91253
91356
|
}
|
|
91254
91357
|
}),
|
|
91255
91358
|
/*@__PURE__*/LanguageDescription.of({
|
|
91256
91359
|
name: "Angular Template",
|
|
91257
91360
|
load() {
|
|
91258
|
-
return import('./index-
|
|
91361
|
+
return import('./index-o_ka9Ogg.js').then(m => m.angular());
|
|
91259
91362
|
}
|
|
91260
91363
|
})
|
|
91261
91364
|
];
|
|
@@ -162260,7 +162363,7 @@ const Panel = ({
|
|
|
162260
162363
|
}, children))))));
|
|
162261
162364
|
};
|
|
162262
162365
|
|
|
162263
|
-
const ImagePanelComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-
|
|
162366
|
+
const ImagePanelComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-CqFTZA40.js'));
|
|
162264
162367
|
const ImagePanelBody = ({
|
|
162265
162368
|
topic
|
|
162266
162369
|
}) => {
|
|
@@ -162295,7 +162398,7 @@ const ImagePanel = /*#__PURE__*/React__default.memo(function ImagePanel(props) {
|
|
|
162295
162398
|
// License, v2.0. If a copy of the MPL was not distributed with this
|
|
162296
162399
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
162297
162400
|
|
|
162298
|
-
const ThreeDeeRenderComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-
|
|
162401
|
+
const ThreeDeeRenderComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-BoEGkJ9p.js'));
|
|
162299
162402
|
const PointCloudPanelBody = ({
|
|
162300
162403
|
topic
|
|
162301
162404
|
}) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aq as styleTags, ar as tags, aN as javascriptLanguage, as as LRLanguage, at as LanguageSupport, av as LRParser, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-
|
|
1
|
+
import { aq as styleTags, ar as tags, aN as javascriptLanguage, as as LRLanguage, at as LanguageSupport, av as LRParser, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, aK as html, at as LanguageSupport, aL as parseMixed } from './index-
|
|
1
|
+
import { au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ao as continuedIndent, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, aK as html, at as LanguageSupport, aL as parseMixed } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ap as foldNodeProp, aM as bracketMatchingHandle, at as LanguageSupport, aI as EditorView, ay as syntaxTree, aJ as EditorSelection } from './index-
|
|
1
|
+
import { aC as ContextTracker, au as ExternalTokenizer, aq as styleTags, ar as tags, av as LRParser, as as LRLanguage, an as indentNodeProp, ap as foldNodeProp, aM as bracketMatchingHandle, at as LanguageSupport, aI as EditorView, ay as syntaxTree, aJ as EditorSelection } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aR as ImagePanel, aQ as PanelLayout, aS as PointCloudPanel, aO as VisualizerConnection, aP as VisualizerContext } from './index-
|
|
1
|
+
export { aR as ImagePanel, aQ as PanelLayout, aS as PointCloudPanel, aO as VisualizerConnection, aP as VisualizerContext } from './index-XGPq57tr.js';
|
|
2
2
|
import './FoxgloveServer-DiLI7KZU.js';
|
|
3
3
|
import 'protobufjs/minimal';
|
|
4
4
|
import 'ms';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization/detections/constants.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAiB9D,eAAO,MAAM,eAAe,EAAE;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,KAAK,CAAC;CAChB,EAiFE,CAAC;AAEJ,eAAO,MAAM,WAAW,EAAE,KAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization/detections/constants.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAiB9D,eAAO,MAAM,eAAe,EAAE;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,EAAE,KAAK,CAAC;CAChB,EAiFE,CAAC;AAEJ,eAAO,MAAM,WAAW,EAAE,KAAoC,CAAC;AAC/D,eAAO,MAAM,iBAAiB,EAAE,KAAkC,CAAC;AAEnE,eAAO,MAAM,aAAa;;;;CAAwC,CAAC;AAEnE,eAAO,MAAM,kBAAkB,EAAE,KAAkC,CAAC;AACpE,eAAO,MAAM,wBAAwB,EAAE,KAAkC,CAAC"}
|
|
@@ -101,7 +101,8 @@ export const DETECTION_STYLE = [
|
|
|
101
101
|
{ label: "Hair Drier", ...GROUP_COLORS.item },
|
|
102
102
|
{ label: "Toothbrush", ...GROUP_COLORS.item },
|
|
103
103
|
];
|
|
104
|
-
export const DEBUG_COLOR = { r: 0, g:
|
|
104
|
+
export const DEBUG_COLOR = { r: 0, g: 0.5, b: 0, a: 1 };
|
|
105
|
+
export const TRANSPARENT_COLOR = { r: 0, g: 0, b: 0, a: 0 };
|
|
105
106
|
export const DEFAULT_STYLE = { label: null, ...GROUP_COLORS.item };
|
|
106
107
|
export const DEFAULT_TEXT_COLOR = { r: 1, g: 1, b: 1, a: 1 };
|
|
107
108
|
export const DEFAULT_BACKGROUND_COLOR = { r: 0, g: 0, b: 0, a: 0 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization/detections/constants.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,MAAM,YAAY,GAAG;IACnB,MAAM,EAAE;QACN,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,EAA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G,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAC/D,MAAM,CAAC,MAAM,iBAAiB,GAAU,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAEnE,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC,IAAI,EAAE,CAAC;AAEnE,MAAM,CAAC,MAAM,kBAAkB,GAAU,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAU,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MessageEvent } from "@foxglove/studio-base/players/types";
|
|
2
|
-
import { TopicSizes } from "./detection.js";
|
|
3
|
-
import { ImageAnnotations } from "../../../protobuf.generated/ImageAnnotations.js";
|
|
1
|
+
import type { MessageEvent } from "@foxglove/studio-base/players/types";
|
|
2
|
+
import type { TopicSizes } from "./detection.js";
|
|
3
|
+
import { type ImageAnnotations } from "../../../protobuf.generated/ImageAnnotations.js";
|
|
4
4
|
export type DeserializeImgDetectionsArgs = {
|
|
5
5
|
topic: string;
|
|
6
6
|
message: ImageAnnotations;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization/detections/custom.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization/detections/custom.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAGxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,KAAK,gBAAgB,EAAwB,MAAM,iDAAiD,CAAC;AAG9G,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,wBAAgB,8BAA8B,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,4BAA4B,GAAG,IAAI,CAoJ3H"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/
|
|
4
4
|
import { PointsAnnotationType as FoxglovePointsAnnotationType } from "@foxglove/schemas";
|
|
5
5
|
import { estimateObjectSize } from "@foxglove/studio-base/players/messageMemoryEstimation.js";
|
|
6
|
-
import {
|
|
7
|
-
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, getTextSize } from "./utils.js";
|
|
6
|
+
import { DEBUG_COLOR, DEFAULT_STYLE, DEFAULT_TEXT_COLOR, TRANSPARENT_COLOR } from "./constants.js";
|
|
7
|
+
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, getBorderThickness, getTextSize } from "./utils.js";
|
|
8
8
|
import { PointsAnnotationType } from "../../../protobuf.generated/ImageAnnotations.js";
|
|
9
9
|
import { parseMessage } from "../../utils.js";
|
|
10
10
|
export function deserializeImgDetectionsCustom({ topic, message, callback, topicSizes }) {
|
|
@@ -17,25 +17,103 @@ export function deserializeImgDetectionsCustom({ topic, message, callback, topic
|
|
|
17
17
|
const points = [];
|
|
18
18
|
const texts = [];
|
|
19
19
|
const circles = [];
|
|
20
|
+
const baseHighlightConfigNoType = {
|
|
21
|
+
timestamp: receiveTime,
|
|
22
|
+
outline_colors: [],
|
|
23
|
+
thickness: getBorderThickness(width, height),
|
|
24
|
+
outline_color: DEBUG_COLOR,
|
|
25
|
+
fill_color: TRANSPARENT_COLOR,
|
|
26
|
+
};
|
|
27
|
+
const baseHighlightConfig = {
|
|
28
|
+
...baseHighlightConfigNoType,
|
|
29
|
+
type: FoxglovePointsAnnotationType.LINE_LIST,
|
|
30
|
+
};
|
|
20
31
|
for (const annotations of message.annotations) {
|
|
32
|
+
// We assume that the annotation is a rectangle with 4 points (0 - bottom left corner, 3 - top right corner)
|
|
33
|
+
for (const point of annotations.points) {
|
|
34
|
+
const annotationWidth = (point.points[2]?.x ?? 0) - (point.points[0]?.x ?? 0);
|
|
35
|
+
const annotationHeight = (point.points[3]?.y ?? 0) - (point.points[0]?.y ?? 0);
|
|
36
|
+
const highligtLength = 0.035;
|
|
37
|
+
const highlightSizeX = Math.min(highligtLength, annotationWidth);
|
|
38
|
+
const highlightSizeY = Math.min(highligtLength, annotationHeight);
|
|
39
|
+
if (!point.points[0] || !point.points[1] || !point.points[2] || !point.points[3]) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
points.push({
|
|
43
|
+
...baseHighlightConfig,
|
|
44
|
+
points: [
|
|
45
|
+
{ ...point.points[0] },
|
|
46
|
+
{ x: (point.points[0].x + highlightSizeX), y: point.points[0].y },
|
|
47
|
+
],
|
|
48
|
+
});
|
|
49
|
+
points.push({
|
|
50
|
+
...baseHighlightConfig,
|
|
51
|
+
points: [
|
|
52
|
+
{ ...point.points[0] },
|
|
53
|
+
{ x: point.points[0].x, y: (point.points[0].y + highlightSizeY) },
|
|
54
|
+
],
|
|
55
|
+
});
|
|
56
|
+
points.push({
|
|
57
|
+
...baseHighlightConfig,
|
|
58
|
+
points: [
|
|
59
|
+
{ ...point.points[1] },
|
|
60
|
+
{ x: (point.points[1].x - highlightSizeX), y: point.points[1].y },
|
|
61
|
+
],
|
|
62
|
+
});
|
|
63
|
+
points.push({
|
|
64
|
+
...baseHighlightConfig,
|
|
65
|
+
points: [
|
|
66
|
+
{ ...point.points[1] },
|
|
67
|
+
{ x: point.points[1].x, y: (point.points[1].y + highlightSizeY) },
|
|
68
|
+
],
|
|
69
|
+
});
|
|
70
|
+
points.push({
|
|
71
|
+
...baseHighlightConfig,
|
|
72
|
+
points: [
|
|
73
|
+
{ ...point.points[2] },
|
|
74
|
+
{ x: (point.points[2].x - highlightSizeX), y: point.points[2].y },
|
|
75
|
+
],
|
|
76
|
+
});
|
|
77
|
+
points.push({
|
|
78
|
+
...baseHighlightConfig,
|
|
79
|
+
points: [
|
|
80
|
+
{ ...point.points[2] },
|
|
81
|
+
{ x: point.points[2].x, y: (point.points[2].y - highlightSizeY) },
|
|
82
|
+
],
|
|
83
|
+
});
|
|
84
|
+
points.push({
|
|
85
|
+
...baseHighlightConfig,
|
|
86
|
+
points: [
|
|
87
|
+
{ ...point.points[3] },
|
|
88
|
+
{ x: (point.points[3].x + highlightSizeX), y: point.points[3].y },
|
|
89
|
+
],
|
|
90
|
+
});
|
|
91
|
+
points.push({
|
|
92
|
+
...baseHighlightConfig,
|
|
93
|
+
points: [
|
|
94
|
+
{ ...point.points[3] },
|
|
95
|
+
{ x: point.points[3].x, y: (point.points[3].y - highlightSizeY) },
|
|
96
|
+
],
|
|
97
|
+
});
|
|
98
|
+
}
|
|
21
99
|
points.push(...annotations.points.map(annotation => ({
|
|
22
100
|
timestamp: receiveTime,
|
|
101
|
+
outline_colors: [],
|
|
102
|
+
thickness: getBorderThickness(width, height),
|
|
103
|
+
outline_color: TRANSPARENT_COLOR,
|
|
104
|
+
fill_color: DEFAULT_STYLE.fill,
|
|
23
105
|
type: annotation.type === PointsAnnotationType.UNRECOGNIZED
|
|
24
106
|
? FoxglovePointsAnnotationType.UNKNOWN
|
|
25
107
|
: Number(annotation.type),
|
|
26
108
|
points: annotation.points,
|
|
27
|
-
outline_color: annotation.outlineColor ?? DEFAULT_STYLE.outline,
|
|
28
|
-
outline_colors: [],
|
|
29
|
-
fill_color: annotation.fillColor ?? DEFAULT_STYLE.fill,
|
|
30
|
-
thickness: annotation.thickness
|
|
31
109
|
})));
|
|
32
110
|
texts.push(...annotations.texts.map(annotation => ({
|
|
33
111
|
timestamp: receiveTime,
|
|
34
|
-
position: annotation.position
|
|
112
|
+
position: annotation.position ? { x: annotation.position.x + 0.005, y: annotation.position.y + 0.0275 } : { x: 0, y: 0 },
|
|
35
113
|
text: annotation.text,
|
|
36
114
|
font_size: annotation.fontSize ?? getTextSize(width, height),
|
|
37
|
-
text_color:
|
|
38
|
-
background_color:
|
|
115
|
+
text_color: DEFAULT_TEXT_COLOR,
|
|
116
|
+
background_color: TRANSPARENT_COLOR
|
|
39
117
|
})));
|
|
40
118
|
circles.push(...annotations.circles.map(annotation => ({
|
|
41
119
|
timestamp: receiveTime,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.js","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization/detections/custom.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,
|
|
1
|
+
{"version":3,"file":"custom.js","sourceRoot":"","sources":["../../../../../../src/messaging/deserialization/detections/custom.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAqD,oBAAoB,IAAI,4BAA4B,EAAyB,MAAM,mBAAmB,CAAC;AACnK,OAAO,EAAE,kBAAkB,EAAE,MAAM,0DAA0D,CAAC;AAG9F,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnG,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5F,OAAO,EAAyB,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAC9G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