@luxonis/visualizer-protobuf 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/depthai-visualizer/lib/src/connection/BaseConnection.d.ts +2 -1
- package/dist/apps/depthai-visualizer/lib/src/connection/BaseConnection.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/connection/BaseConnection.js.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/connection/ws/worker.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/connection/ws/worker.js +5 -9
- package/dist/apps/depthai-visualizer/lib/src/connection/ws/worker.js.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/deserialization.d.ts +6 -6
- package/dist/apps/depthai-visualizer/lib/src/messaging/deserialization.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/deserialization.js +6 -6
- package/dist/apps/depthai-visualizer/lib/src/messaging/deserialization.js.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/message-handler.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/message-handler.js +5 -35
- package/dist/apps/depthai-visualizer/lib/src/messaging/message-handler.js.map +1 -1
- package/dist/apps/depthai-visualizer/lib/src/messaging/protobuf.d.ts +158 -0
- package/dist/apps/depthai-visualizer/lib/src/messaging/protobuf.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/lib/src/messaging/protobuf.js +40 -0
- package/dist/apps/depthai-visualizer/lib/src/messaging/protobuf.js.map +1 -0
- package/dist/{index-FbdFgxfl.js → index-B8tJ5E-v.js} +5 -5
- package/dist/{index-CssU1TR9.js → index-BoCFgPcb.js} +341 -5538
- package/dist/{index-BHqhWNC3.js → index-CDLN8AQd.js} +50 -56
- package/dist/{index-E-b7zaCM.js → index-CcszYLTP.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.d.ts +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.d.ts.map +1 -1
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js +47 -50
- package/dist/packages/studio-base/src/panels/ThreeDeeRender/renderables/ImageMode/MessageHandler.js.map +1 -1
- package/dist/protobuf-CjDCjqx3.js +5242 -0
- package/dist/{worker-DYxcuzJr.js → worker-prm9jOcV.js} +10 -11
- package/package.json +1 -1
- package/dist/_commonjsHelpers-Dr0z5XX9.js +0 -32
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Waterfall } from 'hydrated-ws';
|
|
2
|
-
import { E as EventEmitter } from './index-
|
|
3
|
-
import { a as getDefaultExportFromCjs } from './
|
|
2
|
+
import { E as EventEmitter } from './index-CcszYLTP.js';
|
|
3
|
+
import { a as getDefaultExportFromCjs, p as protobufsBySchema } from './protobuf-CjDCjqx3.js';
|
|
4
4
|
import require$$0 from 'ms';
|
|
5
|
+
import 'protobufjs/minimal';
|
|
5
6
|
|
|
6
7
|
var BinaryOpcode;
|
|
7
8
|
(function (BinaryOpcode) {
|
|
@@ -893,21 +894,19 @@ class WsWorker {
|
|
|
893
894
|
handleAdvertisements() {
|
|
894
895
|
this.#client.on("advertise", channels => {
|
|
895
896
|
const data = [];
|
|
896
|
-
const kinds = {
|
|
897
|
-
'proto.ImgFrame': 'image',
|
|
898
|
-
'proto.EncodedFrame': 'image',
|
|
899
|
-
'proto.PointCloudData': 'pointCloud'
|
|
900
|
-
};
|
|
901
897
|
for (const channel of channels) {
|
|
902
898
|
const subscriptionId = this.#client.subscribe(channel.id);
|
|
903
899
|
this.subscriptions.set(subscriptionId, {
|
|
904
900
|
topic: channel.topic,
|
|
905
901
|
schema: channel.schemaName
|
|
906
902
|
});
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
903
|
+
const kind = protobufsBySchema[channel.schemaName]?.kind;
|
|
904
|
+
if (kind) {
|
|
905
|
+
data.push({
|
|
906
|
+
topic: channel.topic,
|
|
907
|
+
kind
|
|
908
|
+
});
|
|
909
|
+
}
|
|
911
910
|
}
|
|
912
911
|
send({
|
|
913
912
|
type: "channels",
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function getAugmentedNamespace(n) {
|
|
8
|
-
if (n.__esModule) return n;
|
|
9
|
-
var f = n.default;
|
|
10
|
-
if (typeof f == "function") {
|
|
11
|
-
var a = function a () {
|
|
12
|
-
if (this instanceof a) {
|
|
13
|
-
return Reflect.construct(f, arguments, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
return f.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
a.prototype = f.prototype;
|
|
18
|
-
} else a = {};
|
|
19
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
20
|
-
Object.keys(n).forEach(function (k) {
|
|
21
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
22
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () {
|
|
25
|
-
return n[k];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
return a;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export { getDefaultExportFromCjs as a, commonjsGlobal as c, getAugmentedNamespace as g };
|