@luxonis/visualizer-protobuf 2.11.0 → 2.11.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.
Files changed (27) hide show
  1. package/dist/{index-q5ntvQ9J.js → index-2Zk3DeS3.js} +1 -1
  2. package/dist/{index-CuTbfjm4.js → index-9X5IFBUj.js} +1 -1
  3. package/dist/{index-D5KujzU7.js → index-B3T-sU1j.js} +2 -2
  4. package/dist/{index-sJoBQ6gl.js → index-B61jalVx.js} +1 -1
  5. package/dist/{index-9BnKis9k.js → index-B9aXaLUR.js} +1 -1
  6. package/dist/{index-CQKlk6Js.js → index-BLoXvLKz.js} +1 -1
  7. package/dist/{index-DCQsiAHI.js → index-BTtZZhIx.js} +1 -1
  8. package/dist/{index-ntquXPTF.js → index-BiV6mWEH.js} +1 -1
  9. package/dist/{index-BctVnsQm.js → index-BisiS-gw.js} +1 -1
  10. package/dist/{index-mcTxiguU.js → index-CC5SpeJH.js} +1 -1
  11. package/dist/{index-0xTZH7vK.js → index-Cc3zOB0y.js} +1 -1
  12. package/dist/{index-C_fYSVz6.js → index-CjJ4xAdB.js} +1 -1
  13. package/dist/{index-DaPVHqQi.js → index-Cm0UpxTw.js} +1 -1
  14. package/dist/{index-BlyspkRD.js → index-CqFRR40y.js} +1 -1
  15. package/dist/{index-Ci0rx2C7.js → index-DbFvmBsl.js} +3 -4
  16. package/dist/{index-CeXn0bre.js → index-DjE38-5p.js} +28 -131
  17. package/dist/{index-CXKwUY1f.js → index-PSBhGaEs.js} +1 -1
  18. package/dist/{index-BlFf5tak.js → index-prbig-mv.js} +1 -1
  19. package/dist/{index-C0_Rb_l8.js → index-vCAg8fos.js} +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/lib/src/messaging/deserialization/detections/custom.d.ts +3 -3
  22. package/dist/lib/src/messaging/deserialization/detections/custom.d.ts.map +1 -1
  23. package/dist/lib/src/messaging/deserialization/detections/custom.js +9 -87
  24. package/dist/lib/src/messaging/deserialization/detections/custom.js.map +1 -1
  25. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/normalizeAnnotations.js +2 -2
  26. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/normalizeAnnotations.js.map +1 -1
  27. package/package.json +1 -1
@@ -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-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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-Ci0rx2C7.js';
1
+ import { ImagePanel } from './index-DbFvmBsl.js';
2
2
  import 'react';
3
3
  import 'react-dom';
4
- import './index-CeXn0bre.js';
4
+ import './index-DjE38-5p.js';
5
5
  import './FoxgloveServer-DiLI7KZU.js';
6
6
  import 'protobufjs/minimal';
7
7
  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-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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, 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-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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, aA as delimitedIndent, ap as foldNodeProp, aB as foldInside, at as LanguageSupport, aL as parseMixed } from './index-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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, as as LRLanguage, at as LanguageSupport, av as LRParser, aD as LocalTokenGroup, aK as html, aL as parseMixed, aN as javascriptLanguage } from './index-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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';
@@ -33005,7 +33005,6 @@ let ImageMarkerType = /*#__PURE__*/function (ImageMarkerType) {
33005
33005
 
33006
33006
  // Should mirror TextAnnotation.font_size default value
33007
33007
  const DEFAULT_FONT_SIZE = 12;
33008
- const DEFAULT_PADDING = 4;
33009
33008
  function foxglovePointTypeToStyle(type) {
33010
33009
  switch (type) {
33011
33010
  case typescript.PointsAnnotationType.LINE_LOOP:
@@ -33073,7 +33072,7 @@ function normalizeFoxgloveImageAnnotations(message) {
33073
33072
  textColor: text.text_color,
33074
33073
  backgroundColor: text.background_color,
33075
33074
  fontSize: text.font_size,
33076
- padding: text.font_size / DEFAULT_FONT_SIZE * DEFAULT_PADDING,
33075
+ padding: 0,
33077
33076
  messagePath: ["texts", i]
33078
33077
  });
33079
33078
  }
@@ -33119,7 +33118,7 @@ function normalizeRosImageMarker(message, messagePath) {
33119
33118
  textColor: message.outline_color,
33120
33119
  backgroundColor: message.filled ? message.fill_color : undefined,
33121
33120
  fontSize: message.scale * DEFAULT_FONT_SIZE,
33122
- padding: DEFAULT_PADDING * message.scale,
33121
+ padding: 0,
33123
33122
  messagePath
33124
33123
  };
33125
33124
  case ImageMarkerType.POINTS:
@@ -2139,12 +2139,6 @@ const DEBUG_COLOR = {
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
- };
2148
2142
  const DEFAULT_STYLE = {
2149
2143
  label: null,
2150
2144
  ...GROUP_COLORS.item
@@ -11037,123 +11031,26 @@ function deserializeImgDetectionsCustom({
11037
11031
  const points = [];
11038
11032
  const texts = [];
11039
11033
  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
- };
11051
11034
  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
- }
11135
11035
  points.push(...annotations.points.map(annotation => ({
11136
11036
  timestamp: receiveTime,
11137
- outline_colors: [],
11138
- thickness: getBorderThickness(width, height),
11139
- outline_color: TRANSPARENT_COLOR,
11140
- fill_color: DEFAULT_STYLE.fill,
11141
11037
  type: annotation.type === PointsAnnotationType$2.UNRECOGNIZED ? typescript$1.PointsAnnotationType.UNKNOWN : Number(annotation.type),
11142
- points: annotation.points
11038
+ points: annotation.points,
11039
+ outline_color: annotation.outlineColor ?? DEFAULT_STYLE.outline,
11040
+ outline_colors: [],
11041
+ fill_color: annotation.fillColor ?? DEFAULT_STYLE.fill,
11042
+ thickness: annotation.thickness
11143
11043
  })));
11144
11044
  texts.push(...annotations.texts.map(annotation => ({
11145
11045
  timestamp: receiveTime,
11146
- position: annotation.position ? {
11147
- x: annotation.position.x + 0.005,
11148
- y: annotation.position.y + 0.0275
11149
- } : {
11046
+ position: annotation.position ?? {
11150
11047
  x: 0,
11151
11048
  y: 0
11152
11049
  },
11153
11050
  text: annotation.text,
11154
11051
  font_size: annotation.fontSize ?? getTextSize(width, height),
11155
- text_color: DEFAULT_TEXT_COLOR,
11156
- background_color: TRANSPARENT_COLOR
11052
+ text_color: annotation.textColor ?? DEFAULT_TEXT_COLOR,
11053
+ background_color: annotation.backgroundColor ?? DEFAULT_BACKGROUND_COLOR
11157
11054
  })));
11158
11055
  circles.push(...annotations.circles.map(annotation => ({
11159
11056
  timestamp: receiveTime,
@@ -90354,7 +90251,7 @@ function legacy(parser) {
90354
90251
  return new LanguageSupport(StreamLanguage.define(parser));
90355
90252
  }
90356
90253
  function sql$1(dialectName) {
90357
- return import('./index-CXKwUY1f.js').then(m => m.sql({ dialect: m[dialectName] }));
90254
+ return import('./index-PSBhGaEs.js').then(m => m.sql({ dialect: m[dialectName] }));
90358
90255
  }
90359
90256
  /**
90360
90257
  An array of language descriptions for known language packages.
@@ -90365,7 +90262,7 @@ const languages = [
90365
90262
  name: "C",
90366
90263
  extensions: ["c", "h", "ino"],
90367
90264
  load() {
90368
- return import('./index-C0_Rb_l8.js').then(m => m.cpp());
90265
+ return import('./index-vCAg8fos.js').then(m => m.cpp());
90369
90266
  }
90370
90267
  }),
90371
90268
  /*@__PURE__*/LanguageDescription.of({
@@ -90373,7 +90270,7 @@ const languages = [
90373
90270
  alias: ["cpp"],
90374
90271
  extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
90375
90272
  load() {
90376
- return import('./index-C0_Rb_l8.js').then(m => m.cpp());
90273
+ return import('./index-vCAg8fos.js').then(m => m.cpp());
90377
90274
  }
90378
90275
  }),
90379
90276
  /*@__PURE__*/LanguageDescription.of({
@@ -90393,7 +90290,7 @@ const languages = [
90393
90290
  name: "Go",
90394
90291
  extensions: ["go"],
90395
90292
  load() {
90396
- return import('./index-9BnKis9k.js').then(m => m.go());
90293
+ return import('./index-B9aXaLUR.js').then(m => m.go());
90397
90294
  }
90398
90295
  }),
90399
90296
  /*@__PURE__*/LanguageDescription.of({
@@ -90408,7 +90305,7 @@ const languages = [
90408
90305
  name: "Java",
90409
90306
  extensions: ["java"],
90410
90307
  load() {
90411
- return import('./index-0xTZH7vK.js').then(m => m.java());
90308
+ return import('./index-Cc3zOB0y.js').then(m => m.java());
90412
90309
  }
90413
90310
  }),
90414
90311
  /*@__PURE__*/LanguageDescription.of({
@@ -90424,7 +90321,7 @@ const languages = [
90424
90321
  alias: ["json5"],
90425
90322
  extensions: ["json", "map"],
90426
90323
  load() {
90427
- return import('./index-BlyspkRD.js').then(m => m.json());
90324
+ return import('./index-CqFRR40y.js').then(m => m.json());
90428
90325
  }
90429
90326
  }),
90430
90327
  /*@__PURE__*/LanguageDescription.of({
@@ -90438,14 +90335,14 @@ const languages = [
90438
90335
  name: "LESS",
90439
90336
  extensions: ["less"],
90440
90337
  load() {
90441
- return import('./index-ntquXPTF.js').then(m => m.less());
90338
+ return import('./index-BiV6mWEH.js').then(m => m.less());
90442
90339
  }
90443
90340
  }),
90444
90341
  /*@__PURE__*/LanguageDescription.of({
90445
90342
  name: "Liquid",
90446
90343
  extensions: ["liquid"],
90447
90344
  load() {
90448
- return import('./index-CQKlk6Js.js').then(m => m.liquid());
90345
+ return import('./index-BLoXvLKz.js').then(m => m.liquid());
90449
90346
  }
90450
90347
  }),
90451
90348
  /*@__PURE__*/LanguageDescription.of({
@@ -90471,7 +90368,7 @@ const languages = [
90471
90368
  name: "PHP",
90472
90369
  extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
90473
90370
  load() {
90474
- return import('./index-DCQsiAHI.js').then(m => m.php());
90371
+ return import('./index-BTtZZhIx.js').then(m => m.php());
90475
90372
  }
90476
90373
  }),
90477
90374
  /*@__PURE__*/LanguageDescription.of({
@@ -90488,28 +90385,28 @@ const languages = [
90488
90385
  extensions: ["BUILD", "bzl", "py", "pyw"],
90489
90386
  filename: /^(BUCK|BUILD)$/,
90490
90387
  load() {
90491
- return import('./index-C_fYSVz6.js').then(m => m.python());
90388
+ return import('./index-CjJ4xAdB.js').then(m => m.python());
90492
90389
  }
90493
90390
  }),
90494
90391
  /*@__PURE__*/LanguageDescription.of({
90495
90392
  name: "Rust",
90496
90393
  extensions: ["rs"],
90497
90394
  load() {
90498
- return import('./index-sJoBQ6gl.js').then(m => m.rust());
90395
+ return import('./index-B61jalVx.js').then(m => m.rust());
90499
90396
  }
90500
90397
  }),
90501
90398
  /*@__PURE__*/LanguageDescription.of({
90502
90399
  name: "Sass",
90503
90400
  extensions: ["sass"],
90504
90401
  load() {
90505
- return import('./index-BctVnsQm.js').then(m => m.sass({ indented: true }));
90402
+ return import('./index-BisiS-gw.js').then(m => m.sass({ indented: true }));
90506
90403
  }
90507
90404
  }),
90508
90405
  /*@__PURE__*/LanguageDescription.of({
90509
90406
  name: "SCSS",
90510
90407
  extensions: ["scss"],
90511
90408
  load() {
90512
- return import('./index-BctVnsQm.js').then(m => m.sass());
90409
+ return import('./index-BisiS-gw.js').then(m => m.sass());
90513
90410
  }
90514
90411
  }),
90515
90412
  /*@__PURE__*/LanguageDescription.of({
@@ -90540,7 +90437,7 @@ const languages = [
90540
90437
  name: "WebAssembly",
90541
90438
  extensions: ["wat", "wast"],
90542
90439
  load() {
90543
- return import('./index-CuTbfjm4.js').then(m => m.wast());
90440
+ return import('./index-9X5IFBUj.js').then(m => m.wast());
90544
90441
  }
90545
90442
  }),
90546
90443
  /*@__PURE__*/LanguageDescription.of({
@@ -90548,7 +90445,7 @@ const languages = [
90548
90445
  alias: ["rss", "wsdl", "xsd"],
90549
90446
  extensions: ["xml", "xsl", "xsd", "svg"],
90550
90447
  load() {
90551
- return import('./index-q5ntvQ9J.js').then(m => m.xml());
90448
+ return import('./index-2Zk3DeS3.js').then(m => m.xml());
90552
90449
  }
90553
90450
  }),
90554
90451
  /*@__PURE__*/LanguageDescription.of({
@@ -90556,7 +90453,7 @@ const languages = [
90556
90453
  alias: ["yml"],
90557
90454
  extensions: ["yaml", "yml"],
90558
90455
  load() {
90559
- return import('./index-mcTxiguU.js').then(m => m.yaml());
90456
+ return import('./index-CC5SpeJH.js').then(m => m.yaml());
90560
90457
  }
90561
90458
  }),
90562
90459
  // Legacy modes ported from CodeMirror 5
@@ -91352,13 +91249,13 @@ const languages = [
91352
91249
  name: "Vue",
91353
91250
  extensions: ["vue"],
91354
91251
  load() {
91355
- return import('./index-DaPVHqQi.js').then(m => m.vue());
91252
+ return import('./index-Cm0UpxTw.js').then(m => m.vue());
91356
91253
  }
91357
91254
  }),
91358
91255
  /*@__PURE__*/LanguageDescription.of({
91359
91256
  name: "Angular Template",
91360
91257
  load() {
91361
- return import('./index-BlFf5tak.js').then(m => m.angular());
91258
+ return import('./index-prbig-mv.js').then(m => m.angular());
91362
91259
  }
91363
91260
  })
91364
91261
  ];
@@ -162363,7 +162260,7 @@ const Panel = ({
162363
162260
  }, children))))));
162364
162261
  };
162365
162262
 
162366
- const ImagePanelComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-D5KujzU7.js'));
162263
+ const ImagePanelComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-B3T-sU1j.js'));
162367
162264
  const ImagePanelBody = ({
162368
162265
  topic
162369
162266
  }) => {
@@ -162398,7 +162295,7 @@ const ImagePanel = /*#__PURE__*/React__default.memo(function ImagePanel(props) {
162398
162295
  // License, v2.0. If a copy of the MPL was not distributed with this
162399
162296
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
162400
162297
 
162401
- const ThreeDeeRenderComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-Ci0rx2C7.js'));
162298
+ const ThreeDeeRenderComponent = /*#__PURE__*/React__default.lazy(async () => await import('./index-DbFvmBsl.js'));
162402
162299
  const PointCloudPanelBody = ({
162403
162300
  topic
162404
162301
  }) => {
@@ -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-CeXn0bre.js';
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-DjE38-5p.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, aN as javascriptLanguage, as as LRLanguage, at as LanguageSupport, av as LRParser, aK as html, aL as parseMixed, au as ExternalTokenizer } from './index-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
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-DjE38-5p.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-CeXn0bre.js';
1
+ export { aR as ImagePanel, aQ as PanelLayout, aS as PointCloudPanel, aO as VisualizerConnection, aP as VisualizerContext } from './index-DjE38-5p.js';
2
2
  import './FoxgloveServer-DiLI7KZU.js';
3
3
  import 'protobufjs/minimal';
4
4
  import 'ms';
@@ -1,6 +1,6 @@
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";
1
+ import { MessageEvent } from "@foxglove/studio-base/players/types";
2
+ import { TopicSizes } from "./detection.js";
3
+ import { 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,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"}
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;AAGnE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAwB,MAAM,iDAAiD,CAAC;AAGzG,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,CA2D3H"}
@@ -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 { DEBUG_COLOR, DEFAULT_STYLE, DEFAULT_TEXT_COLOR, TRANSPARENT_COLOR } from "./constants.js";
7
- import { DEFAULT_HEIGHT, DEFAULT_WIDTH, getBorderThickness, getTextSize } from "./utils.js";
6
+ import { DEFAULT_BACKGROUND_COLOR, DEFAULT_STYLE, DEFAULT_TEXT_COLOR } from "./constants.js";
7
+ import { DEFAULT_HEIGHT, DEFAULT_WIDTH, 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,103 +17,25 @@ 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
- };
31
20
  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
- }
99
21
  points.push(...annotations.points.map(annotation => ({
100
22
  timestamp: receiveTime,
101
- outline_colors: [],
102
- thickness: getBorderThickness(width, height),
103
- outline_color: TRANSPARENT_COLOR,
104
- fill_color: DEFAULT_STYLE.fill,
105
23
  type: annotation.type === PointsAnnotationType.UNRECOGNIZED
106
24
  ? FoxglovePointsAnnotationType.UNKNOWN
107
25
  : Number(annotation.type),
108
26
  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
109
31
  })));
110
32
  texts.push(...annotations.texts.map(annotation => ({
111
33
  timestamp: receiveTime,
112
- position: annotation.position ? { x: annotation.position.x + 0.005, y: annotation.position.y + 0.0275 } : { x: 0, y: 0 },
34
+ position: annotation.position ?? { x: 0, y: 0 },
113
35
  text: annotation.text,
114
36
  font_size: annotation.fontSize ?? getTextSize(width, height),
115
- text_color: DEFAULT_TEXT_COLOR,
116
- background_color: TRANSPARENT_COLOR
37
+ text_color: annotation.textColor ?? DEFAULT_TEXT_COLOR,
38
+ background_color: annotation.backgroundColor ?? DEFAULT_BACKGROUND_COLOR
117
39
  })));
118
40
  circles.push(...annotations.circles.map(annotation => ({
119
41
  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,E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AQ,EAAE,UAAU,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;YAC/C,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,SAAS,EAAG,UAAU,CAAC,QAA+B,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC;YACpF,UAAU,EAAE,UAAU,CAAC,SAAS,IAAI,kBAAkB;YACtD,gBAAgB,EAAE,UAAU,CAAC,eAAe,IAAI,wBAAwB;SACzE,CAAC,CAAC,CAAC,CAAC;QAEL,OAAO,CAAC,IAAI,CACV,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YACxC,SAAS,EAAE,WAAW;YACtB,WAAW;YACX,WAAW;YACX,QAAQ,EAAE,UAAU,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;YAC/C,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,SAAS,EAAE,UAAU,CAAC,SAAS;YAC/B,UAAU,EAAE,UAAU,CAAC,SAAS,IAAI,aAAa,CAAC,IAAI;YACtD,aAAa,EAAE,UAAU,CAAC,YAAY,IAAI,aAAa,CAAC,OAAO;SAChE,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC;IAED,MAAM,eAAe,GAA6B,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;IAE7E,QAAQ,CAAC;QACP,KAAK;QACL,WAAW;QACX,OAAO,EAAE,eAAe;QACxB,WAAW,EAAE,kBAAkB,CAAC,eAAe,CAAC;QAChD,UAAU,EAAE,2BAA2B;KACxC,CAAC,CAAC;AACL,CAAC"}
@@ -93,7 +93,7 @@ function normalizeFoxgloveImageAnnotations(message) {
93
93
  textColor: text.text_color,
94
94
  backgroundColor: text.background_color,
95
95
  fontSize: text.font_size,
96
- padding: (text.font_size / DEFAULT_FONT_SIZE) * DEFAULT_PADDING,
96
+ padding: 0,
97
97
  messagePath: ["texts", i],
98
98
  });
99
99
  }
@@ -139,7 +139,7 @@ function normalizeRosImageMarker(message, messagePath) {
139
139
  textColor: message.outline_color,
140
140
  backgroundColor: message.filled ? message.fill_color : undefined,
141
141
  fontSize: message.scale * DEFAULT_FONT_SIZE,
142
- padding: DEFAULT_PADDING * message.scale,
142
+ padding: 0,
143
143
  messagePath,
144
144
  };
145
145
  case ImageMarkerType.POINTS:
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeAnnotations.js","sourceRoot":"","sources":["../../../../../../../../../../packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/normalizeAnnotations.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAQ,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAsC,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE7F,OAAO,EAGL,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAI3F,uDAAuD;AACvD,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,eAAe,GAAG,CAAC,CAAC;AAE1B,oCAAoC;AACpC,MAAM,oBAAoB,GAAG;IAC3B,gBAAgB;IAChB,gCAAgC;IAChC,oCAAoC;IACpC,oCAAoC;IACpC,gBAAgB;IAChB,gCAAgC;IAChC,oCAAoC;IACpC,8BAA8B;IAC9B,kCAAkC;IAClC,qCAAqC;IACrC,yCAAyC;IACzC,yCAAyC;IACzC,+BAA+B;IAC/B,8BAA8B;IAC9B,WAAW;IACX,gCAAgC;IAChC,oCAAoC;IACpC,2BAA2B;IAC3B,4BAA4B;CACpB,CAAC;AAEX,SAAS,wBAAwB,CAC/B,IAA0B;IAE1B,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,o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mBAAmB,CAAC,OAAgB,EAAE,IAAe;IAC5D,IAAI,KAAK,GAAY,OAAO,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,GAAG,IAAK,KAAkC,EAAE,CAAC;YAC/C,KAAK,GAAI,KAAoC,CAAC,GAAG,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IACD,OAAO,KAAkB,CAAC;AAC5B,CAAC;AAED,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"normalizeAnnotations.js","sourceRoot":"","sources":["../../../../../../../../../../packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/normalizeAnnotations.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,oEAAoE;AACpE,0DAA0D;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAQ,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAsC,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE7F,OAAO,EAGL,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAI3F,uDAAuD;AACvD,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,eAAe,GAAG,CAAC,CAAC;AAE1B,oCAAoC;AACpC,MAAM,oBAAoB,GAAG;IAC3B,gBAAgB;IAChB,gCAAgC;IAChC,oCAAoC;IACpC,oCAAoC;IACpC,gBAAgB;IAChB,gCAAgC;IAChC,oCAAoC;IACpC,8BAA8B;IAC9B,kCAAkC;IAClC,qCAAqC;IACrC,yCAAyC;IACzC,yCAAyC;IACzC,+BAA+B;IAC/B,8BAA8B;IAC9B,WAAW;IACX,gCAAgC;IAChC,oCAAoC;IACpC,2BAA2B;IAC3B,4BAA4B;CACpB,CAAC;AAEX,SAAS,wBAAwB,CAC/B,IAA0B;IAE1B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,IAAI,KAAK,GAAY,OAAO,CAAC;IAC7B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,GAAG,IAAK,KAAkC,EAAE,CAAC;YAC/C,KAAK,GAAI,KAAoC,CAAC,GAAG,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;IACD,OAAO,KAAkB,CAAC;AAC5B,CAAC;AAED,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxonis/visualizer-protobuf",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "type": "module",
5
5
  "description": "RobotHub Visualizer Library",
6
6
  "author": "Luxonis Corp",