@luxonis/visualizer-protobuf 3.1.0-rc.1 → 3.1.1

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 (62) hide show
  1. package/dist/{depth-BJ1GI-lD.js → depth-DlC6A3Te.js} +65 -1
  2. package/dist/{deserialization.worker-CpadaVUC.js → deserialization.worker-iLQYf6dz.js} +229 -157
  3. package/dist/{index-9DOB2BHe.js → index-BFHnSq_D.js} +2 -2
  4. package/dist/{index-CnzSRv2D.js → index-BGnPWAxp.js} +2 -2
  5. package/dist/{index-U_mYoOEZ.js → index-BN1XXU26.js} +2 -2
  6. package/dist/{index-CtyBNZU_.js → index-BsCcQbSo.js} +2 -2
  7. package/dist/{index-D_iaubuR.js → index-BwszuQxy.js} +2 -2
  8. package/dist/{index-COdpp0bH.js → index-CUGaisTR.js} +27 -25
  9. package/dist/{index-BcPicNrO.js → index-CYRDaPyN.js} +2 -2
  10. package/dist/{index-C6roEbmS.js → index-CekJcKgK.js} +2 -2
  11. package/dist/{index-BdP75fhG.js → index-CrP2kJym.js} +2 -2
  12. package/dist/{index-1-odW3tv.js → index-D5H3iCVT.js} +2 -2
  13. package/dist/{index-ocXqedtr.js → index-DBwLkKPx.js} +69 -36
  14. package/dist/{index-C9uoBMgf.js → index-DG1nCi2m.js} +2 -2
  15. package/dist/{index-Bq5PYbZg.js → index-DoxJYKhI.js} +2 -2
  16. package/dist/{index-CbT-68hE.js → index-DsJRU5mK.js} +2 -2
  17. package/dist/{index-CBUrwa3S.js → index-DslURtpP.js} +2 -2
  18. package/dist/{index-CizBebSF.js → index-VjMojhAJ.js} +3 -3
  19. package/dist/{index-BLbSGHGo.js → index-Zjw0dbGD.js} +2 -2
  20. package/dist/{index-CltgUTHj.js → index-mkLEh24H.js} +2 -2
  21. package/dist/{index-D7STQcHO.js → index-tLfWrXcg.js} +2 -2
  22. package/dist/{index-BjEDDy0Z.js → index-xU2jSCtf.js} +2 -2
  23. package/dist/index.js +2 -2
  24. package/dist/{javascript-CbsLxQzd.js → javascript-DY_wLWwP.js} +1 -1
  25. package/dist/lib/src/components/Panel.d.ts.map +1 -1
  26. package/dist/lib/src/components/Panel.js +3 -1
  27. package/dist/lib/src/components/Panel.js.map +1 -1
  28. package/dist/lib/src/connection/connection.d.ts.map +1 -1
  29. package/dist/lib/src/connection/connection.js +7 -1
  30. package/dist/lib/src/connection/connection.js.map +1 -1
  31. package/dist/lib/src/connection/foxglove-connection.d.ts +6 -0
  32. package/dist/lib/src/connection/foxglove-connection.d.ts.map +1 -1
  33. package/dist/lib/src/connection/foxglove-connection.js +24 -3
  34. package/dist/lib/src/connection/foxglove-connection.js.map +1 -1
  35. package/dist/lib/src/context/VisualizerContext.d.ts +2 -0
  36. package/dist/lib/src/context/VisualizerContext.d.ts.map +1 -1
  37. package/dist/lib/src/context/VisualizerContext.js +7 -0
  38. package/dist/lib/src/context/VisualizerContext.js.map +1 -1
  39. package/dist/lib/src/messaging/deserialization/video/h264.d.ts +2 -1
  40. package/dist/lib/src/messaging/deserialization/video/h264.d.ts.map +1 -1
  41. package/dist/lib/src/messaging/deserialization/video/h264.js +142 -97
  42. package/dist/lib/src/messaging/deserialization/video/h264.js.map +1 -1
  43. package/dist/lib/src/messaging/deserialization/video/h265.d.ts +2 -1
  44. package/dist/lib/src/messaging/deserialization/video/h265.d.ts.map +1 -1
  45. package/dist/lib/src/messaging/deserialization/video/h265.js +57 -16
  46. package/dist/lib/src/messaging/deserialization/video/h265.js.map +1 -1
  47. package/dist/lib/src/messaging/deserialization.worker.d.ts +3 -1
  48. package/dist/lib/src/messaging/deserialization.worker.d.ts.map +1 -1
  49. package/dist/lib/src/messaging/deserialization.worker.js +28 -12
  50. package/dist/lib/src/messaging/deserialization.worker.js.map +1 -1
  51. package/dist/lib/src/utils/error.d.ts +17 -4
  52. package/dist/lib/src/utils/error.d.ts.map +1 -1
  53. package/dist/lib/src/utils/error.js +59 -6
  54. package/dist/lib/src/utils/error.js.map +1 -1
  55. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/ImageMode.d.ts.map +1 -1
  56. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/ImageMode.js +0 -3
  57. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/ImageMode.js.map +1 -1
  58. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/ImageAnnotations.d.ts.map +1 -1
  59. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/ImageAnnotations.js +16 -12
  60. package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/annotations/ImageAnnotations.js.map +1 -1
  61. package/dist/{pug-iw1NM5Dn.js → pug-COlPLJkL.js} +1 -1
  62. package/package.json +2 -2
@@ -627,6 +627,70 @@ function estimateObjectSize(obj) {
627
627
  return SMALL_INTEGER_SIZE;
628
628
  }
629
629
 
630
+ const decodingErrorDefinitions = {
631
+ UnsupportedTopic: {
632
+ message: "This topic is not supported by the current decoder."
633
+ },
634
+ NotInSecureContext: {
635
+ message: "This stream requires a secure context such as HTTPS or localhost."
636
+ },
637
+ EncodedStreamNotSupported: {
638
+ message: "Encoded stream decoding is not supported in this browser."
639
+ },
640
+ DecoderError: {
641
+ message: "The stream could not be decoded."
642
+ }
643
+ };
644
+ class DecodingError extends Error {
645
+ constructor(code, topicName, message) {
646
+ super(message !== null && message !== void 0 ? message : decodingErrorDefinitions[code].message);
647
+ this.topicName = void 0;
648
+ this.code = void 0;
649
+ this.name = "DecodingError";
650
+ this.code = code;
651
+ this.topicName = topicName;
652
+ Object.setPrototypeOf(this, new.target.prototype);
653
+ }
654
+ }
655
+ class UnsupportedTopicError extends DecodingError {
656
+ constructor(topicName, message) {
657
+ super("UnsupportedTopic", topicName, message);
658
+ this.name = "UnsupportedTopicError";
659
+ }
660
+ }
661
+ class NotInSecureContextError extends DecodingError {
662
+ constructor(topicName) {
663
+ super("NotInSecureContext", topicName);
664
+ this.name = "NotInSecureContextError";
665
+ }
666
+ }
667
+ class EncodedStreamNotSupportedError extends DecodingError {
668
+ constructor(topicName) {
669
+ super("EncodedStreamNotSupported", topicName);
670
+ this.name = "EncodedStreamNotSupportedError";
671
+ }
672
+ }
673
+ class DecoderRuntimeError extends DecodingError {
674
+ constructor(topicName, message) {
675
+ super("DecoderError", topicName, message);
676
+ this.name = "DecoderRuntimeError";
677
+ }
678
+ }
679
+ function createDecodingError(code, topicName, message) {
680
+ switch (code) {
681
+ case "UnsupportedTopic":
682
+ return new UnsupportedTopicError(topicName, message);
683
+ case "NotInSecureContext":
684
+ return new NotInSecureContextError(topicName);
685
+ case "EncodedStreamNotSupported":
686
+ return new EncodedStreamNotSupportedError(topicName);
687
+ case "DecoderError":
688
+ return new DecoderRuntimeError(topicName, message);
689
+ default:
690
+ return new DecoderRuntimeError(topicName, message !== null && message !== void 0 ? message : `Unexpected decoding error code: ${String(code)}`);
691
+ }
692
+ }
693
+
630
694
  // This Source Code Form is subject to the terms of the Mozilla Public
631
695
  // License, v2.0. If a copy of the MPL was not distributed with this
632
696
  // file, You can obtain one at http://mozilla.org/MPL/2.0/
@@ -3874,4 +3938,4 @@ function getDistanceFromDepthDataForOffset(depthData, width, height, xOffset, yO
3874
3938
  return sum / count;
3875
3939
  }
3876
3940
 
3877
- export { arrayPush as $, AppError as A, getAllPanelIds as B, getConfigsForNestedPanelsInsideTab as C, DEFAULT_TAB_PANEL_CONFIG as D, reorderTabWithinTabPanel as E, moveTabBetweenTabPanels as F, isTabPanelConfig as G, addPanelToTab as H, createAddUpdates as I, filterMap as J, uniq as K, Logger$1 as L, useShallowMemo as M, CurrentLayoutContext as N, MessageOrderTracker as O, AppConfigurationContext as P, getDistanceFromDepthDataForOffset as Q, parseMessage as R, fromMillis as S, TAB_PANEL_TYPE as T, parsePixelFormat as U, deserializeDepthFrame as V, isSymbol as W, toString as X, keys as Y, getSymbols as Z, stubArray as _, baseEach as a, baseGetAllKeys as a0, getAllKeys as a1, arrayMap as a2, useCurrentLayoutActions as a3, useCurrentLayoutSelector as a4, usePanelMosaicId as a5, noop as a6, useSelectedPanels as a7, useAppConfiguration as a8, useJsonTreeTheme as a9, baseFlatten as b, baseIteratee as c, dist as d, estimateObjectSize as e, baseDifference as f, getTag as g, baseKeys as h, baseIsEqual as i, castPath as j, baseGet as k, hasIn as l, shallowequal$1 as m, getPanelIdsInsideTabPanels as n, getPanelTypeFromId as o, removePanelFromTabPanel as p, getPanelIdForType as q, reportError as r, sendNotification as s, toKey as t, useGuaranteedContext as u, getPathFromNode as v, updateTabPanelLayout as w, getSaveConfigsPayloadForAddedPanel as x, replaceAndRemovePanels as y, inlineTabPanelLayouts as z };
3941
+ export { deserializeDepthFrame as $, AppError as A, inlineTabPanelLayouts as B, getAllPanelIds as C, DEFAULT_TAB_PANEL_CONFIG as D, getConfigsForNestedPanelsInsideTab as E, reorderTabWithinTabPanel as F, moveTabBetweenTabPanels as G, isTabPanelConfig as H, addPanelToTab as I, createAddUpdates as J, filterMap as K, Logger$1 as L, uniq as M, useShallowMemo as N, CurrentLayoutContext as O, MessageOrderTracker as P, AppConfigurationContext as Q, DecodingError as R, getDistanceFromDepthDataForOffset as S, TAB_PANEL_TYPE as T, parseMessage as U, fromMillis as V, DecoderRuntimeError as W, parsePixelFormat as X, UnsupportedTopicError as Y, NotInSecureContextError as Z, EncodedStreamNotSupportedError as _, baseEach as a, isSymbol as a0, toString as a1, keys as a2, getSymbols as a3, stubArray as a4, arrayPush as a5, baseGetAllKeys as a6, getAllKeys as a7, arrayMap as a8, useCurrentLayoutActions as a9, useCurrentLayoutSelector as aa, usePanelMosaicId as ab, noop as ac, useSelectedPanels as ad, useAppConfiguration as ae, useJsonTreeTheme as af, baseFlatten as b, createDecodingError as c, dist as d, estimateObjectSize as e, baseIteratee as f, baseDifference as g, getTag as h, baseKeys as i, baseIsEqual as j, castPath as k, baseGet as l, hasIn as m, shallowequal$1 as n, getPanelIdsInsideTabPanels as o, getPanelTypeFromId as p, removePanelFromTabPanel as q, reportError as r, sendNotification as s, toKey as t, useGuaranteedContext as u, getPanelIdForType as v, getPathFromNode as w, updateTabPanelLayout as x, getSaveConfigsPayloadForAddedPanel as y, replaceAndRemovePanels as z };