@vertexvis/stream-api 0.13.2-canary.39 → 0.13.2-canary.41
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/bundle.cjs.js +975 -13
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +975 -13
- package/dist/bundle.esm.js.map +1 -1
- package/dist/streamApi.d.ts +15 -3
- package/dist/types.d.ts +9 -0
- package/package.json +5 -5
package/dist/bundle.esm.js
CHANGED
|
@@ -11642,6 +11642,198 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11642
11642
|
return Token;
|
|
11643
11643
|
})();
|
|
11644
11644
|
|
|
11645
|
+
stream.TransformInteraction = (function() {
|
|
11646
|
+
|
|
11647
|
+
/**
|
|
11648
|
+
* Properties of a TransformInteraction.
|
|
11649
|
+
* @memberof vertexvis.protobuf.stream
|
|
11650
|
+
* @interface ITransformInteraction
|
|
11651
|
+
* @property {vertexvis.protobuf.core.IAffineMatrix4f|null} [delta] TransformInteraction delta
|
|
11652
|
+
*/
|
|
11653
|
+
|
|
11654
|
+
/**
|
|
11655
|
+
* Constructs a new TransformInteraction.
|
|
11656
|
+
* @memberof vertexvis.protobuf.stream
|
|
11657
|
+
* @classdesc Represents a TransformInteraction.
|
|
11658
|
+
* @implements ITransformInteraction
|
|
11659
|
+
* @constructor
|
|
11660
|
+
* @param {vertexvis.protobuf.stream.ITransformInteraction=} [properties] Properties to set
|
|
11661
|
+
*/
|
|
11662
|
+
function TransformInteraction(properties) {
|
|
11663
|
+
if (properties)
|
|
11664
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11665
|
+
if (properties[keys[i]] != null)
|
|
11666
|
+
this[keys[i]] = properties[keys[i]];
|
|
11667
|
+
}
|
|
11668
|
+
|
|
11669
|
+
/**
|
|
11670
|
+
* TransformInteraction delta.
|
|
11671
|
+
* @member {vertexvis.protobuf.core.IAffineMatrix4f|null|undefined} delta
|
|
11672
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11673
|
+
* @instance
|
|
11674
|
+
*/
|
|
11675
|
+
TransformInteraction.prototype.delta = null;
|
|
11676
|
+
|
|
11677
|
+
/**
|
|
11678
|
+
* Creates a new TransformInteraction instance using the specified properties.
|
|
11679
|
+
* @function create
|
|
11680
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11681
|
+
* @static
|
|
11682
|
+
* @param {vertexvis.protobuf.stream.ITransformInteraction=} [properties] Properties to set
|
|
11683
|
+
* @returns {vertexvis.protobuf.stream.TransformInteraction} TransformInteraction instance
|
|
11684
|
+
*/
|
|
11685
|
+
TransformInteraction.create = function create(properties) {
|
|
11686
|
+
return new TransformInteraction(properties);
|
|
11687
|
+
};
|
|
11688
|
+
|
|
11689
|
+
/**
|
|
11690
|
+
* Encodes the specified TransformInteraction message. Does not implicitly {@link vertexvis.protobuf.stream.TransformInteraction.verify|verify} messages.
|
|
11691
|
+
* @function encode
|
|
11692
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11693
|
+
* @static
|
|
11694
|
+
* @param {vertexvis.protobuf.stream.ITransformInteraction} message TransformInteraction message or plain object to encode
|
|
11695
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11696
|
+
* @returns {$protobuf.Writer} Writer
|
|
11697
|
+
*/
|
|
11698
|
+
TransformInteraction.encode = function encode(message, writer) {
|
|
11699
|
+
if (!writer)
|
|
11700
|
+
writer = $Writer.create();
|
|
11701
|
+
if (message.delta != null && Object.hasOwnProperty.call(message, "delta"))
|
|
11702
|
+
$root.vertexvis.protobuf.core.AffineMatrix4f.encode(message.delta, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
11703
|
+
return writer;
|
|
11704
|
+
};
|
|
11705
|
+
|
|
11706
|
+
/**
|
|
11707
|
+
* Encodes the specified TransformInteraction message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.TransformInteraction.verify|verify} messages.
|
|
11708
|
+
* @function encodeDelimited
|
|
11709
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11710
|
+
* @static
|
|
11711
|
+
* @param {vertexvis.protobuf.stream.ITransformInteraction} message TransformInteraction message or plain object to encode
|
|
11712
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11713
|
+
* @returns {$protobuf.Writer} Writer
|
|
11714
|
+
*/
|
|
11715
|
+
TransformInteraction.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11716
|
+
return this.encode(message, writer).ldelim();
|
|
11717
|
+
};
|
|
11718
|
+
|
|
11719
|
+
/**
|
|
11720
|
+
* Decodes a TransformInteraction message from the specified reader or buffer.
|
|
11721
|
+
* @function decode
|
|
11722
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11723
|
+
* @static
|
|
11724
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11725
|
+
* @param {number} [length] Message length if known beforehand
|
|
11726
|
+
* @returns {vertexvis.protobuf.stream.TransformInteraction} TransformInteraction
|
|
11727
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11728
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11729
|
+
*/
|
|
11730
|
+
TransformInteraction.decode = function decode(reader, length) {
|
|
11731
|
+
if (!(reader instanceof $Reader))
|
|
11732
|
+
reader = $Reader.create(reader);
|
|
11733
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.TransformInteraction();
|
|
11734
|
+
while (reader.pos < end) {
|
|
11735
|
+
let tag = reader.uint32();
|
|
11736
|
+
switch (tag >>> 3) {
|
|
11737
|
+
case 1:
|
|
11738
|
+
message.delta = $root.vertexvis.protobuf.core.AffineMatrix4f.decode(reader, reader.uint32());
|
|
11739
|
+
break;
|
|
11740
|
+
default:
|
|
11741
|
+
reader.skipType(tag & 7);
|
|
11742
|
+
break;
|
|
11743
|
+
}
|
|
11744
|
+
}
|
|
11745
|
+
return message;
|
|
11746
|
+
};
|
|
11747
|
+
|
|
11748
|
+
/**
|
|
11749
|
+
* Decodes a TransformInteraction message from the specified reader or buffer, length delimited.
|
|
11750
|
+
* @function decodeDelimited
|
|
11751
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11752
|
+
* @static
|
|
11753
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11754
|
+
* @returns {vertexvis.protobuf.stream.TransformInteraction} TransformInteraction
|
|
11755
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11756
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11757
|
+
*/
|
|
11758
|
+
TransformInteraction.decodeDelimited = function decodeDelimited(reader) {
|
|
11759
|
+
if (!(reader instanceof $Reader))
|
|
11760
|
+
reader = new $Reader(reader);
|
|
11761
|
+
return this.decode(reader, reader.uint32());
|
|
11762
|
+
};
|
|
11763
|
+
|
|
11764
|
+
/**
|
|
11765
|
+
* Verifies a TransformInteraction message.
|
|
11766
|
+
* @function verify
|
|
11767
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11768
|
+
* @static
|
|
11769
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11770
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11771
|
+
*/
|
|
11772
|
+
TransformInteraction.verify = function verify(message) {
|
|
11773
|
+
if (typeof message !== "object" || message === null)
|
|
11774
|
+
return "object expected";
|
|
11775
|
+
if (message.delta != null && message.hasOwnProperty("delta")) {
|
|
11776
|
+
let error = $root.vertexvis.protobuf.core.AffineMatrix4f.verify(message.delta);
|
|
11777
|
+
if (error)
|
|
11778
|
+
return "delta." + error;
|
|
11779
|
+
}
|
|
11780
|
+
return null;
|
|
11781
|
+
};
|
|
11782
|
+
|
|
11783
|
+
/**
|
|
11784
|
+
* Creates a TransformInteraction message from a plain object. Also converts values to their respective internal types.
|
|
11785
|
+
* @function fromObject
|
|
11786
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11787
|
+
* @static
|
|
11788
|
+
* @param {Object.<string,*>} object Plain object
|
|
11789
|
+
* @returns {vertexvis.protobuf.stream.TransformInteraction} TransformInteraction
|
|
11790
|
+
*/
|
|
11791
|
+
TransformInteraction.fromObject = function fromObject(object) {
|
|
11792
|
+
if (object instanceof $root.vertexvis.protobuf.stream.TransformInteraction)
|
|
11793
|
+
return object;
|
|
11794
|
+
let message = new $root.vertexvis.protobuf.stream.TransformInteraction();
|
|
11795
|
+
if (object.delta != null) {
|
|
11796
|
+
if (typeof object.delta !== "object")
|
|
11797
|
+
throw TypeError(".vertexvis.protobuf.stream.TransformInteraction.delta: object expected");
|
|
11798
|
+
message.delta = $root.vertexvis.protobuf.core.AffineMatrix4f.fromObject(object.delta);
|
|
11799
|
+
}
|
|
11800
|
+
return message;
|
|
11801
|
+
};
|
|
11802
|
+
|
|
11803
|
+
/**
|
|
11804
|
+
* Creates a plain object from a TransformInteraction message. Also converts values to other types if specified.
|
|
11805
|
+
* @function toObject
|
|
11806
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11807
|
+
* @static
|
|
11808
|
+
* @param {vertexvis.protobuf.stream.TransformInteraction} message TransformInteraction
|
|
11809
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11810
|
+
* @returns {Object.<string,*>} Plain object
|
|
11811
|
+
*/
|
|
11812
|
+
TransformInteraction.toObject = function toObject(message, options) {
|
|
11813
|
+
if (!options)
|
|
11814
|
+
options = {};
|
|
11815
|
+
let object = {};
|
|
11816
|
+
if (options.defaults)
|
|
11817
|
+
object.delta = null;
|
|
11818
|
+
if (message.delta != null && message.hasOwnProperty("delta"))
|
|
11819
|
+
object.delta = $root.vertexvis.protobuf.core.AffineMatrix4f.toObject(message.delta, options);
|
|
11820
|
+
return object;
|
|
11821
|
+
};
|
|
11822
|
+
|
|
11823
|
+
/**
|
|
11824
|
+
* Converts this TransformInteraction to JSON.
|
|
11825
|
+
* @function toJSON
|
|
11826
|
+
* @memberof vertexvis.protobuf.stream.TransformInteraction
|
|
11827
|
+
* @instance
|
|
11828
|
+
* @returns {Object.<string,*>} JSON object
|
|
11829
|
+
*/
|
|
11830
|
+
TransformInteraction.prototype.toJSON = function toJSON() {
|
|
11831
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
11832
|
+
};
|
|
11833
|
+
|
|
11834
|
+
return TransformInteraction;
|
|
11835
|
+
})();
|
|
11836
|
+
|
|
11645
11837
|
stream.Error = (function() {
|
|
11646
11838
|
|
|
11647
11839
|
/**
|
|
@@ -12869,6 +13061,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
12869
13061
|
* @property {vertexvis.protobuf.stream.IGetStencilBufferPayload|null} [getStencilBuffer] StreamRequest getStencilBuffer
|
|
12870
13062
|
* @property {vertexvis.protobuf.stream.IResetViewPlayload|null} [resetView] StreamRequest resetView
|
|
12871
13063
|
* @property {vertexvis.protobuf.stream.IRefreshTokenPayload|null} [refreshToken] StreamRequest refreshToken
|
|
13064
|
+
* @property {vertexvis.protobuf.stream.IUpdateInteractionPayload|null} [updateInteraction] StreamRequest updateInteraction
|
|
12872
13065
|
*/
|
|
12873
13066
|
|
|
12874
13067
|
/**
|
|
@@ -13046,17 +13239,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13046
13239
|
*/
|
|
13047
13240
|
StreamRequest.prototype.refreshToken = null;
|
|
13048
13241
|
|
|
13242
|
+
/**
|
|
13243
|
+
* StreamRequest updateInteraction.
|
|
13244
|
+
* @member {vertexvis.protobuf.stream.IUpdateInteractionPayload|null|undefined} updateInteraction
|
|
13245
|
+
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
13246
|
+
* @instance
|
|
13247
|
+
*/
|
|
13248
|
+
StreamRequest.prototype.updateInteraction = null;
|
|
13249
|
+
|
|
13049
13250
|
// OneOf field names bound to virtual getters and setters
|
|
13050
13251
|
let $oneOfFields;
|
|
13051
13252
|
|
|
13052
13253
|
/**
|
|
13053
13254
|
* StreamRequest payload.
|
|
13054
|
-
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|"resetView"|"refreshToken"|undefined} payload
|
|
13255
|
+
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|"resetView"|"refreshToken"|"updateInteraction"|undefined} payload
|
|
13055
13256
|
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
13056
13257
|
* @instance
|
|
13057
13258
|
*/
|
|
13058
13259
|
Object.defineProperty(StreamRequest.prototype, "payload", {
|
|
13059
|
-
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer", "resetView", "refreshToken"]),
|
|
13260
|
+
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer", "resetView", "refreshToken", "updateInteraction"]),
|
|
13060
13261
|
set: $util.oneOfSetter($oneOfFields)
|
|
13061
13262
|
});
|
|
13062
13263
|
|
|
@@ -13124,6 +13325,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13124
13325
|
$root.vertexvis.protobuf.stream.ResetViewPlayload.encode(message.resetView, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
13125
13326
|
if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
|
|
13126
13327
|
$root.vertexvis.protobuf.stream.RefreshTokenPayload.encode(message.refreshToken, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
13328
|
+
if (message.updateInteraction != null && Object.hasOwnProperty.call(message, "updateInteraction"))
|
|
13329
|
+
$root.vertexvis.protobuf.stream.UpdateInteractionPayload.encode(message.updateInteraction, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
13127
13330
|
return writer;
|
|
13128
13331
|
};
|
|
13129
13332
|
|
|
@@ -13218,6 +13421,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13218
13421
|
case 20:
|
|
13219
13422
|
message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.decode(reader, reader.uint32());
|
|
13220
13423
|
break;
|
|
13424
|
+
case 21:
|
|
13425
|
+
message.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionPayload.decode(reader, reader.uint32());
|
|
13426
|
+
break;
|
|
13221
13427
|
default:
|
|
13222
13428
|
reader.skipType(tag & 7);
|
|
13223
13429
|
break;
|
|
@@ -13447,6 +13653,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13447
13653
|
return "refreshToken." + error;
|
|
13448
13654
|
}
|
|
13449
13655
|
}
|
|
13656
|
+
if (message.updateInteraction != null && message.hasOwnProperty("updateInteraction")) {
|
|
13657
|
+
if (properties.payload === 1)
|
|
13658
|
+
return "payload: multiple values";
|
|
13659
|
+
properties.payload = 1;
|
|
13660
|
+
{
|
|
13661
|
+
let error = $root.vertexvis.protobuf.stream.UpdateInteractionPayload.verify(message.updateInteraction);
|
|
13662
|
+
if (error)
|
|
13663
|
+
return "updateInteraction." + error;
|
|
13664
|
+
}
|
|
13665
|
+
}
|
|
13450
13666
|
return null;
|
|
13451
13667
|
};
|
|
13452
13668
|
|
|
@@ -13562,6 +13778,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13562
13778
|
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.refreshToken: object expected");
|
|
13563
13779
|
message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenPayload.fromObject(object.refreshToken);
|
|
13564
13780
|
}
|
|
13781
|
+
if (object.updateInteraction != null) {
|
|
13782
|
+
if (typeof object.updateInteraction !== "object")
|
|
13783
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.updateInteraction: object expected");
|
|
13784
|
+
message.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionPayload.fromObject(object.updateInteraction);
|
|
13785
|
+
}
|
|
13565
13786
|
return message;
|
|
13566
13787
|
};
|
|
13567
13788
|
|
|
@@ -13677,6 +13898,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
13677
13898
|
if (options.oneofs)
|
|
13678
13899
|
object.payload = "refreshToken";
|
|
13679
13900
|
}
|
|
13901
|
+
if (message.updateInteraction != null && message.hasOwnProperty("updateInteraction")) {
|
|
13902
|
+
object.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionPayload.toObject(message.updateInteraction, options);
|
|
13903
|
+
if (options.oneofs)
|
|
13904
|
+
object.payload = "updateInteraction";
|
|
13905
|
+
}
|
|
13680
13906
|
return object;
|
|
13681
13907
|
};
|
|
13682
13908
|
|
|
@@ -14248,6 +14474,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14248
14474
|
* Properties of a BeginInteractionPayload.
|
|
14249
14475
|
* @memberof vertexvis.protobuf.stream
|
|
14250
14476
|
* @interface IBeginInteractionPayload
|
|
14477
|
+
* @property {vertexvis.protobuf.stream.ITransformInteraction|null} [transform] BeginInteractionPayload transform
|
|
14251
14478
|
*/
|
|
14252
14479
|
|
|
14253
14480
|
/**
|
|
@@ -14265,6 +14492,28 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14265
14492
|
this[keys[i]] = properties[keys[i]];
|
|
14266
14493
|
}
|
|
14267
14494
|
|
|
14495
|
+
/**
|
|
14496
|
+
* BeginInteractionPayload transform.
|
|
14497
|
+
* @member {vertexvis.protobuf.stream.ITransformInteraction|null|undefined} transform
|
|
14498
|
+
* @memberof vertexvis.protobuf.stream.BeginInteractionPayload
|
|
14499
|
+
* @instance
|
|
14500
|
+
*/
|
|
14501
|
+
BeginInteractionPayload.prototype.transform = null;
|
|
14502
|
+
|
|
14503
|
+
// OneOf field names bound to virtual getters and setters
|
|
14504
|
+
let $oneOfFields;
|
|
14505
|
+
|
|
14506
|
+
/**
|
|
14507
|
+
* BeginInteractionPayload interaction.
|
|
14508
|
+
* @member {"transform"|undefined} interaction
|
|
14509
|
+
* @memberof vertexvis.protobuf.stream.BeginInteractionPayload
|
|
14510
|
+
* @instance
|
|
14511
|
+
*/
|
|
14512
|
+
Object.defineProperty(BeginInteractionPayload.prototype, "interaction", {
|
|
14513
|
+
get: $util.oneOfGetter($oneOfFields = ["transform"]),
|
|
14514
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14515
|
+
});
|
|
14516
|
+
|
|
14268
14517
|
/**
|
|
14269
14518
|
* Creates a new BeginInteractionPayload instance using the specified properties.
|
|
14270
14519
|
* @function create
|
|
@@ -14289,6 +14538,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14289
14538
|
BeginInteractionPayload.encode = function encode(message, writer) {
|
|
14290
14539
|
if (!writer)
|
|
14291
14540
|
writer = $Writer.create();
|
|
14541
|
+
if (message.transform != null && Object.hasOwnProperty.call(message, "transform"))
|
|
14542
|
+
$root.vertexvis.protobuf.stream.TransformInteraction.encode(message.transform, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14292
14543
|
return writer;
|
|
14293
14544
|
};
|
|
14294
14545
|
|
|
@@ -14323,6 +14574,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14323
14574
|
while (reader.pos < end) {
|
|
14324
14575
|
let tag = reader.uint32();
|
|
14325
14576
|
switch (tag >>> 3) {
|
|
14577
|
+
case 1:
|
|
14578
|
+
message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.decode(reader, reader.uint32());
|
|
14579
|
+
break;
|
|
14326
14580
|
default:
|
|
14327
14581
|
reader.skipType(tag & 7);
|
|
14328
14582
|
break;
|
|
@@ -14358,6 +14612,13 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14358
14612
|
BeginInteractionPayload.verify = function verify(message) {
|
|
14359
14613
|
if (typeof message !== "object" || message === null)
|
|
14360
14614
|
return "object expected";
|
|
14615
|
+
if (message.transform != null && message.hasOwnProperty("transform")) {
|
|
14616
|
+
{
|
|
14617
|
+
let error = $root.vertexvis.protobuf.stream.TransformInteraction.verify(message.transform);
|
|
14618
|
+
if (error)
|
|
14619
|
+
return "transform." + error;
|
|
14620
|
+
}
|
|
14621
|
+
}
|
|
14361
14622
|
return null;
|
|
14362
14623
|
};
|
|
14363
14624
|
|
|
@@ -14372,7 +14633,13 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14372
14633
|
BeginInteractionPayload.fromObject = function fromObject(object) {
|
|
14373
14634
|
if (object instanceof $root.vertexvis.protobuf.stream.BeginInteractionPayload)
|
|
14374
14635
|
return object;
|
|
14375
|
-
|
|
14636
|
+
let message = new $root.vertexvis.protobuf.stream.BeginInteractionPayload();
|
|
14637
|
+
if (object.transform != null) {
|
|
14638
|
+
if (typeof object.transform !== "object")
|
|
14639
|
+
throw TypeError(".vertexvis.protobuf.stream.BeginInteractionPayload.transform: object expected");
|
|
14640
|
+
message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.fromObject(object.transform);
|
|
14641
|
+
}
|
|
14642
|
+
return message;
|
|
14376
14643
|
};
|
|
14377
14644
|
|
|
14378
14645
|
/**
|
|
@@ -14384,8 +14651,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14384
14651
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14385
14652
|
* @returns {Object.<string,*>} Plain object
|
|
14386
14653
|
*/
|
|
14387
|
-
BeginInteractionPayload.toObject = function toObject() {
|
|
14388
|
-
|
|
14654
|
+
BeginInteractionPayload.toObject = function toObject(message, options) {
|
|
14655
|
+
if (!options)
|
|
14656
|
+
options = {};
|
|
14657
|
+
let object = {};
|
|
14658
|
+
if (message.transform != null && message.hasOwnProperty("transform")) {
|
|
14659
|
+
object.transform = $root.vertexvis.protobuf.stream.TransformInteraction.toObject(message.transform, options);
|
|
14660
|
+
if (options.oneofs)
|
|
14661
|
+
object.interaction = "transform";
|
|
14662
|
+
}
|
|
14663
|
+
return object;
|
|
14389
14664
|
};
|
|
14390
14665
|
|
|
14391
14666
|
/**
|
|
@@ -14402,6 +14677,243 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14402
14677
|
return BeginInteractionPayload;
|
|
14403
14678
|
})();
|
|
14404
14679
|
|
|
14680
|
+
stream.UpdateInteractionPayload = (function() {
|
|
14681
|
+
|
|
14682
|
+
/**
|
|
14683
|
+
* Properties of an UpdateInteractionPayload.
|
|
14684
|
+
* @memberof vertexvis.protobuf.stream
|
|
14685
|
+
* @interface IUpdateInteractionPayload
|
|
14686
|
+
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] UpdateInteractionPayload frameCorrelationId
|
|
14687
|
+
* @property {vertexvis.protobuf.stream.ITransformInteraction|null} [transform] UpdateInteractionPayload transform
|
|
14688
|
+
*/
|
|
14689
|
+
|
|
14690
|
+
/**
|
|
14691
|
+
* Constructs a new UpdateInteractionPayload.
|
|
14692
|
+
* @memberof vertexvis.protobuf.stream
|
|
14693
|
+
* @classdesc Represents an UpdateInteractionPayload.
|
|
14694
|
+
* @implements IUpdateInteractionPayload
|
|
14695
|
+
* @constructor
|
|
14696
|
+
* @param {vertexvis.protobuf.stream.IUpdateInteractionPayload=} [properties] Properties to set
|
|
14697
|
+
*/
|
|
14698
|
+
function UpdateInteractionPayload(properties) {
|
|
14699
|
+
if (properties)
|
|
14700
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14701
|
+
if (properties[keys[i]] != null)
|
|
14702
|
+
this[keys[i]] = properties[keys[i]];
|
|
14703
|
+
}
|
|
14704
|
+
|
|
14705
|
+
/**
|
|
14706
|
+
* UpdateInteractionPayload frameCorrelationId.
|
|
14707
|
+
* @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
|
|
14708
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14709
|
+
* @instance
|
|
14710
|
+
*/
|
|
14711
|
+
UpdateInteractionPayload.prototype.frameCorrelationId = null;
|
|
14712
|
+
|
|
14713
|
+
/**
|
|
14714
|
+
* UpdateInteractionPayload transform.
|
|
14715
|
+
* @member {vertexvis.protobuf.stream.ITransformInteraction|null|undefined} transform
|
|
14716
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14717
|
+
* @instance
|
|
14718
|
+
*/
|
|
14719
|
+
UpdateInteractionPayload.prototype.transform = null;
|
|
14720
|
+
|
|
14721
|
+
// OneOf field names bound to virtual getters and setters
|
|
14722
|
+
let $oneOfFields;
|
|
14723
|
+
|
|
14724
|
+
/**
|
|
14725
|
+
* UpdateInteractionPayload interaction.
|
|
14726
|
+
* @member {"transform"|undefined} interaction
|
|
14727
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14728
|
+
* @instance
|
|
14729
|
+
*/
|
|
14730
|
+
Object.defineProperty(UpdateInteractionPayload.prototype, "interaction", {
|
|
14731
|
+
get: $util.oneOfGetter($oneOfFields = ["transform"]),
|
|
14732
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14733
|
+
});
|
|
14734
|
+
|
|
14735
|
+
/**
|
|
14736
|
+
* Creates a new UpdateInteractionPayload instance using the specified properties.
|
|
14737
|
+
* @function create
|
|
14738
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14739
|
+
* @static
|
|
14740
|
+
* @param {vertexvis.protobuf.stream.IUpdateInteractionPayload=} [properties] Properties to set
|
|
14741
|
+
* @returns {vertexvis.protobuf.stream.UpdateInteractionPayload} UpdateInteractionPayload instance
|
|
14742
|
+
*/
|
|
14743
|
+
UpdateInteractionPayload.create = function create(properties) {
|
|
14744
|
+
return new UpdateInteractionPayload(properties);
|
|
14745
|
+
};
|
|
14746
|
+
|
|
14747
|
+
/**
|
|
14748
|
+
* Encodes the specified UpdateInteractionPayload message. Does not implicitly {@link vertexvis.protobuf.stream.UpdateInteractionPayload.verify|verify} messages.
|
|
14749
|
+
* @function encode
|
|
14750
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14751
|
+
* @static
|
|
14752
|
+
* @param {vertexvis.protobuf.stream.IUpdateInteractionPayload} message UpdateInteractionPayload message or plain object to encode
|
|
14753
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14754
|
+
* @returns {$protobuf.Writer} Writer
|
|
14755
|
+
*/
|
|
14756
|
+
UpdateInteractionPayload.encode = function encode(message, writer) {
|
|
14757
|
+
if (!writer)
|
|
14758
|
+
writer = $Writer.create();
|
|
14759
|
+
if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
|
|
14760
|
+
$root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14761
|
+
if (message.transform != null && Object.hasOwnProperty.call(message, "transform"))
|
|
14762
|
+
$root.vertexvis.protobuf.stream.TransformInteraction.encode(message.transform, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14763
|
+
return writer;
|
|
14764
|
+
};
|
|
14765
|
+
|
|
14766
|
+
/**
|
|
14767
|
+
* Encodes the specified UpdateInteractionPayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.UpdateInteractionPayload.verify|verify} messages.
|
|
14768
|
+
* @function encodeDelimited
|
|
14769
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14770
|
+
* @static
|
|
14771
|
+
* @param {vertexvis.protobuf.stream.IUpdateInteractionPayload} message UpdateInteractionPayload message or plain object to encode
|
|
14772
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14773
|
+
* @returns {$protobuf.Writer} Writer
|
|
14774
|
+
*/
|
|
14775
|
+
UpdateInteractionPayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14776
|
+
return this.encode(message, writer).ldelim();
|
|
14777
|
+
};
|
|
14778
|
+
|
|
14779
|
+
/**
|
|
14780
|
+
* Decodes an UpdateInteractionPayload message from the specified reader or buffer.
|
|
14781
|
+
* @function decode
|
|
14782
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14783
|
+
* @static
|
|
14784
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14785
|
+
* @param {number} [length] Message length if known beforehand
|
|
14786
|
+
* @returns {vertexvis.protobuf.stream.UpdateInteractionPayload} UpdateInteractionPayload
|
|
14787
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14788
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14789
|
+
*/
|
|
14790
|
+
UpdateInteractionPayload.decode = function decode(reader, length) {
|
|
14791
|
+
if (!(reader instanceof $Reader))
|
|
14792
|
+
reader = $Reader.create(reader);
|
|
14793
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.UpdateInteractionPayload();
|
|
14794
|
+
while (reader.pos < end) {
|
|
14795
|
+
let tag = reader.uint32();
|
|
14796
|
+
switch (tag >>> 3) {
|
|
14797
|
+
case 1:
|
|
14798
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
14799
|
+
break;
|
|
14800
|
+
case 2:
|
|
14801
|
+
message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.decode(reader, reader.uint32());
|
|
14802
|
+
break;
|
|
14803
|
+
default:
|
|
14804
|
+
reader.skipType(tag & 7);
|
|
14805
|
+
break;
|
|
14806
|
+
}
|
|
14807
|
+
}
|
|
14808
|
+
return message;
|
|
14809
|
+
};
|
|
14810
|
+
|
|
14811
|
+
/**
|
|
14812
|
+
* Decodes an UpdateInteractionPayload message from the specified reader or buffer, length delimited.
|
|
14813
|
+
* @function decodeDelimited
|
|
14814
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14815
|
+
* @static
|
|
14816
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14817
|
+
* @returns {vertexvis.protobuf.stream.UpdateInteractionPayload} UpdateInteractionPayload
|
|
14818
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14819
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14820
|
+
*/
|
|
14821
|
+
UpdateInteractionPayload.decodeDelimited = function decodeDelimited(reader) {
|
|
14822
|
+
if (!(reader instanceof $Reader))
|
|
14823
|
+
reader = new $Reader(reader);
|
|
14824
|
+
return this.decode(reader, reader.uint32());
|
|
14825
|
+
};
|
|
14826
|
+
|
|
14827
|
+
/**
|
|
14828
|
+
* Verifies an UpdateInteractionPayload message.
|
|
14829
|
+
* @function verify
|
|
14830
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14831
|
+
* @static
|
|
14832
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14833
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14834
|
+
*/
|
|
14835
|
+
UpdateInteractionPayload.verify = function verify(message) {
|
|
14836
|
+
if (typeof message !== "object" || message === null)
|
|
14837
|
+
return "object expected";
|
|
14838
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
|
|
14839
|
+
let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
|
|
14840
|
+
if (error)
|
|
14841
|
+
return "frameCorrelationId." + error;
|
|
14842
|
+
}
|
|
14843
|
+
if (message.transform != null && message.hasOwnProperty("transform")) {
|
|
14844
|
+
{
|
|
14845
|
+
let error = $root.vertexvis.protobuf.stream.TransformInteraction.verify(message.transform);
|
|
14846
|
+
if (error)
|
|
14847
|
+
return "transform." + error;
|
|
14848
|
+
}
|
|
14849
|
+
}
|
|
14850
|
+
return null;
|
|
14851
|
+
};
|
|
14852
|
+
|
|
14853
|
+
/**
|
|
14854
|
+
* Creates an UpdateInteractionPayload message from a plain object. Also converts values to their respective internal types.
|
|
14855
|
+
* @function fromObject
|
|
14856
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14857
|
+
* @static
|
|
14858
|
+
* @param {Object.<string,*>} object Plain object
|
|
14859
|
+
* @returns {vertexvis.protobuf.stream.UpdateInteractionPayload} UpdateInteractionPayload
|
|
14860
|
+
*/
|
|
14861
|
+
UpdateInteractionPayload.fromObject = function fromObject(object) {
|
|
14862
|
+
if (object instanceof $root.vertexvis.protobuf.stream.UpdateInteractionPayload)
|
|
14863
|
+
return object;
|
|
14864
|
+
let message = new $root.vertexvis.protobuf.stream.UpdateInteractionPayload();
|
|
14865
|
+
if (object.frameCorrelationId != null) {
|
|
14866
|
+
if (typeof object.frameCorrelationId !== "object")
|
|
14867
|
+
throw TypeError(".vertexvis.protobuf.stream.UpdateInteractionPayload.frameCorrelationId: object expected");
|
|
14868
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
|
|
14869
|
+
}
|
|
14870
|
+
if (object.transform != null) {
|
|
14871
|
+
if (typeof object.transform !== "object")
|
|
14872
|
+
throw TypeError(".vertexvis.protobuf.stream.UpdateInteractionPayload.transform: object expected");
|
|
14873
|
+
message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.fromObject(object.transform);
|
|
14874
|
+
}
|
|
14875
|
+
return message;
|
|
14876
|
+
};
|
|
14877
|
+
|
|
14878
|
+
/**
|
|
14879
|
+
* Creates a plain object from an UpdateInteractionPayload message. Also converts values to other types if specified.
|
|
14880
|
+
* @function toObject
|
|
14881
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14882
|
+
* @static
|
|
14883
|
+
* @param {vertexvis.protobuf.stream.UpdateInteractionPayload} message UpdateInteractionPayload
|
|
14884
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14885
|
+
* @returns {Object.<string,*>} Plain object
|
|
14886
|
+
*/
|
|
14887
|
+
UpdateInteractionPayload.toObject = function toObject(message, options) {
|
|
14888
|
+
if (!options)
|
|
14889
|
+
options = {};
|
|
14890
|
+
let object = {};
|
|
14891
|
+
if (options.defaults)
|
|
14892
|
+
object.frameCorrelationId = null;
|
|
14893
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
14894
|
+
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
14895
|
+
if (message.transform != null && message.hasOwnProperty("transform")) {
|
|
14896
|
+
object.transform = $root.vertexvis.protobuf.stream.TransformInteraction.toObject(message.transform, options);
|
|
14897
|
+
if (options.oneofs)
|
|
14898
|
+
object.interaction = "transform";
|
|
14899
|
+
}
|
|
14900
|
+
return object;
|
|
14901
|
+
};
|
|
14902
|
+
|
|
14903
|
+
/**
|
|
14904
|
+
* Converts this UpdateInteractionPayload to JSON.
|
|
14905
|
+
* @function toJSON
|
|
14906
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionPayload
|
|
14907
|
+
* @instance
|
|
14908
|
+
* @returns {Object.<string,*>} JSON object
|
|
14909
|
+
*/
|
|
14910
|
+
UpdateInteractionPayload.prototype.toJSON = function toJSON() {
|
|
14911
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
14912
|
+
};
|
|
14913
|
+
|
|
14914
|
+
return UpdateInteractionPayload;
|
|
14915
|
+
})();
|
|
14916
|
+
|
|
14405
14917
|
stream.EndInteractionPayload = (function() {
|
|
14406
14918
|
|
|
14407
14919
|
/**
|
|
@@ -14409,6 +14921,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14409
14921
|
* @memberof vertexvis.protobuf.stream
|
|
14410
14922
|
* @interface IEndInteractionPayload
|
|
14411
14923
|
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] EndInteractionPayload frameCorrelationId
|
|
14924
|
+
* @property {vertexvis.protobuf.stream.ITransformInteraction|null} [transform] EndInteractionPayload transform
|
|
14412
14925
|
*/
|
|
14413
14926
|
|
|
14414
14927
|
/**
|
|
@@ -14434,6 +14947,28 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14434
14947
|
*/
|
|
14435
14948
|
EndInteractionPayload.prototype.frameCorrelationId = null;
|
|
14436
14949
|
|
|
14950
|
+
/**
|
|
14951
|
+
* EndInteractionPayload transform.
|
|
14952
|
+
* @member {vertexvis.protobuf.stream.ITransformInteraction|null|undefined} transform
|
|
14953
|
+
* @memberof vertexvis.protobuf.stream.EndInteractionPayload
|
|
14954
|
+
* @instance
|
|
14955
|
+
*/
|
|
14956
|
+
EndInteractionPayload.prototype.transform = null;
|
|
14957
|
+
|
|
14958
|
+
// OneOf field names bound to virtual getters and setters
|
|
14959
|
+
let $oneOfFields;
|
|
14960
|
+
|
|
14961
|
+
/**
|
|
14962
|
+
* EndInteractionPayload interaction.
|
|
14963
|
+
* @member {"transform"|undefined} interaction
|
|
14964
|
+
* @memberof vertexvis.protobuf.stream.EndInteractionPayload
|
|
14965
|
+
* @instance
|
|
14966
|
+
*/
|
|
14967
|
+
Object.defineProperty(EndInteractionPayload.prototype, "interaction", {
|
|
14968
|
+
get: $util.oneOfGetter($oneOfFields = ["transform"]),
|
|
14969
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14970
|
+
});
|
|
14971
|
+
|
|
14437
14972
|
/**
|
|
14438
14973
|
* Creates a new EndInteractionPayload instance using the specified properties.
|
|
14439
14974
|
* @function create
|
|
@@ -14460,6 +14995,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14460
14995
|
writer = $Writer.create();
|
|
14461
14996
|
if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
|
|
14462
14997
|
$root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
14998
|
+
if (message.transform != null && Object.hasOwnProperty.call(message, "transform"))
|
|
14999
|
+
$root.vertexvis.protobuf.stream.TransformInteraction.encode(message.transform, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14463
15000
|
return writer;
|
|
14464
15001
|
};
|
|
14465
15002
|
|
|
@@ -14497,6 +15034,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14497
15034
|
case 1:
|
|
14498
15035
|
message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
14499
15036
|
break;
|
|
15037
|
+
case 2:
|
|
15038
|
+
message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.decode(reader, reader.uint32());
|
|
15039
|
+
break;
|
|
14500
15040
|
default:
|
|
14501
15041
|
reader.skipType(tag & 7);
|
|
14502
15042
|
break;
|
|
@@ -14537,6 +15077,13 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14537
15077
|
if (error)
|
|
14538
15078
|
return "frameCorrelationId." + error;
|
|
14539
15079
|
}
|
|
15080
|
+
if (message.transform != null && message.hasOwnProperty("transform")) {
|
|
15081
|
+
{
|
|
15082
|
+
let error = $root.vertexvis.protobuf.stream.TransformInteraction.verify(message.transform);
|
|
15083
|
+
if (error)
|
|
15084
|
+
return "transform." + error;
|
|
15085
|
+
}
|
|
15086
|
+
}
|
|
14540
15087
|
return null;
|
|
14541
15088
|
};
|
|
14542
15089
|
|
|
@@ -14557,6 +15104,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14557
15104
|
throw TypeError(".vertexvis.protobuf.stream.EndInteractionPayload.frameCorrelationId: object expected");
|
|
14558
15105
|
message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
|
|
14559
15106
|
}
|
|
15107
|
+
if (object.transform != null) {
|
|
15108
|
+
if (typeof object.transform !== "object")
|
|
15109
|
+
throw TypeError(".vertexvis.protobuf.stream.EndInteractionPayload.transform: object expected");
|
|
15110
|
+
message.transform = $root.vertexvis.protobuf.stream.TransformInteraction.fromObject(object.transform);
|
|
15111
|
+
}
|
|
14560
15112
|
return message;
|
|
14561
15113
|
};
|
|
14562
15114
|
|
|
@@ -14577,6 +15129,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
14577
15129
|
object.frameCorrelationId = null;
|
|
14578
15130
|
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
14579
15131
|
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
15132
|
+
if (message.transform != null && message.hasOwnProperty("transform")) {
|
|
15133
|
+
object.transform = $root.vertexvis.protobuf.stream.TransformInteraction.toObject(message.transform, options);
|
|
15134
|
+
if (options.oneofs)
|
|
15135
|
+
object.interaction = "transform";
|
|
15136
|
+
}
|
|
14580
15137
|
return object;
|
|
14581
15138
|
};
|
|
14582
15139
|
|
|
@@ -18194,6 +18751,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18194
18751
|
* @property {vertexvis.protobuf.stream.IUpdateCameraResult|null} [updateCamera] StreamResponse updateCamera
|
|
18195
18752
|
* @property {vertexvis.protobuf.stream.IBeginInteractionResult|null} [beginInteraction] StreamResponse beginInteraction
|
|
18196
18753
|
* @property {vertexvis.protobuf.stream.IEndInteractionResult|null} [endInteraction] StreamResponse endInteraction
|
|
18754
|
+
* @property {vertexvis.protobuf.stream.IGracefulReconnectionResult|null} [gracefulReconnection] StreamResponse gracefulReconnection
|
|
18197
18755
|
* @property {vertexvis.protobuf.stream.IReconnectResult|null} [reconnect] StreamResponse reconnect
|
|
18198
18756
|
* @property {vertexvis.protobuf.stream.IHitItemsResult|null} [hitItems] StreamResponse hitItems
|
|
18199
18757
|
* @property {vertexvis.protobuf.stream.IDrawFrameResult|null} [drawFrame] StreamResponse drawFrame
|
|
@@ -18207,6 +18765,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18207
18765
|
* @property {vertexvis.protobuf.stream.IGetStencilBufferResult|null} [stencilBuffer] StreamResponse stencilBuffer
|
|
18208
18766
|
* @property {vertexvis.protobuf.stream.IResetViewResult|null} [resetView] StreamResponse resetView
|
|
18209
18767
|
* @property {vertexvis.protobuf.stream.IRefreshTokenResult|null} [refreshToken] StreamResponse refreshToken
|
|
18768
|
+
* @property {vertexvis.protobuf.stream.IUpdateInteractionResult|null} [updateInteraction] StreamResponse updateInteraction
|
|
18210
18769
|
*/
|
|
18211
18770
|
|
|
18212
18771
|
/**
|
|
@@ -18272,6 +18831,14 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18272
18831
|
*/
|
|
18273
18832
|
StreamResponse.prototype.endInteraction = null;
|
|
18274
18833
|
|
|
18834
|
+
/**
|
|
18835
|
+
* StreamResponse gracefulReconnection.
|
|
18836
|
+
* @member {vertexvis.protobuf.stream.IGracefulReconnectionResult|null|undefined} gracefulReconnection
|
|
18837
|
+
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
18838
|
+
* @instance
|
|
18839
|
+
*/
|
|
18840
|
+
StreamResponse.prototype.gracefulReconnection = null;
|
|
18841
|
+
|
|
18275
18842
|
/**
|
|
18276
18843
|
* StreamResponse reconnect.
|
|
18277
18844
|
* @member {vertexvis.protobuf.stream.IReconnectResult|null|undefined} reconnect
|
|
@@ -18376,17 +18943,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18376
18943
|
*/
|
|
18377
18944
|
StreamResponse.prototype.refreshToken = null;
|
|
18378
18945
|
|
|
18946
|
+
/**
|
|
18947
|
+
* StreamResponse updateInteraction.
|
|
18948
|
+
* @member {vertexvis.protobuf.stream.IUpdateInteractionResult|null|undefined} updateInteraction
|
|
18949
|
+
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
18950
|
+
* @instance
|
|
18951
|
+
*/
|
|
18952
|
+
StreamResponse.prototype.updateInteraction = null;
|
|
18953
|
+
|
|
18379
18954
|
// OneOf field names bound to virtual getters and setters
|
|
18380
18955
|
let $oneOfFields;
|
|
18381
18956
|
|
|
18382
18957
|
/**
|
|
18383
18958
|
* StreamResponse result.
|
|
18384
|
-
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|"resetView"|"refreshToken"|undefined} result
|
|
18959
|
+
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|"resetView"|"refreshToken"|"updateInteraction"|undefined} result
|
|
18385
18960
|
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
18386
18961
|
* @instance
|
|
18387
18962
|
*/
|
|
18388
18963
|
Object.defineProperty(StreamResponse.prototype, "result", {
|
|
18389
|
-
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer", "resetView", "refreshToken"]),
|
|
18964
|
+
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer", "resetView", "refreshToken", "updateInteraction"]),
|
|
18390
18965
|
set: $util.oneOfSetter($oneOfFields)
|
|
18391
18966
|
});
|
|
18392
18967
|
|
|
@@ -18452,6 +19027,10 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18452
19027
|
$root.vertexvis.protobuf.stream.ResetViewResult.encode(message.resetView, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
18453
19028
|
if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
|
|
18454
19029
|
$root.vertexvis.protobuf.stream.RefreshTokenResult.encode(message.refreshToken, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
19030
|
+
if (message.gracefulReconnection != null && Object.hasOwnProperty.call(message, "gracefulReconnection"))
|
|
19031
|
+
$root.vertexvis.protobuf.stream.GracefulReconnectionResult.encode(message.gracefulReconnection, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
|
|
19032
|
+
if (message.updateInteraction != null && Object.hasOwnProperty.call(message, "updateInteraction"))
|
|
19033
|
+
$root.vertexvis.protobuf.stream.UpdateInteractionResult.encode(message.updateInteraction, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
18455
19034
|
return writer;
|
|
18456
19035
|
};
|
|
18457
19036
|
|
|
@@ -18504,6 +19083,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18504
19083
|
case 6:
|
|
18505
19084
|
message.endInteraction = $root.vertexvis.protobuf.stream.EndInteractionResult.decode(reader, reader.uint32());
|
|
18506
19085
|
break;
|
|
19086
|
+
case 20:
|
|
19087
|
+
message.gracefulReconnection = $root.vertexvis.protobuf.stream.GracefulReconnectionResult.decode(reader, reader.uint32());
|
|
19088
|
+
break;
|
|
18507
19089
|
case 7:
|
|
18508
19090
|
message.reconnect = $root.vertexvis.protobuf.stream.ReconnectResult.decode(reader, reader.uint32());
|
|
18509
19091
|
break;
|
|
@@ -18543,6 +19125,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18543
19125
|
case 19:
|
|
18544
19126
|
message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.decode(reader, reader.uint32());
|
|
18545
19127
|
break;
|
|
19128
|
+
case 21:
|
|
19129
|
+
message.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionResult.decode(reader, reader.uint32());
|
|
19130
|
+
break;
|
|
18546
19131
|
default:
|
|
18547
19132
|
reader.skipType(tag & 7);
|
|
18548
19133
|
break;
|
|
@@ -18622,9 +19207,19 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18622
19207
|
return "result: multiple values";
|
|
18623
19208
|
properties.result = 1;
|
|
18624
19209
|
{
|
|
18625
|
-
let error = $root.vertexvis.protobuf.stream.EndInteractionResult.verify(message.endInteraction);
|
|
19210
|
+
let error = $root.vertexvis.protobuf.stream.EndInteractionResult.verify(message.endInteraction);
|
|
19211
|
+
if (error)
|
|
19212
|
+
return "endInteraction." + error;
|
|
19213
|
+
}
|
|
19214
|
+
}
|
|
19215
|
+
if (message.gracefulReconnection != null && message.hasOwnProperty("gracefulReconnection")) {
|
|
19216
|
+
if (properties.result === 1)
|
|
19217
|
+
return "result: multiple values";
|
|
19218
|
+
properties.result = 1;
|
|
19219
|
+
{
|
|
19220
|
+
let error = $root.vertexvis.protobuf.stream.GracefulReconnectionResult.verify(message.gracefulReconnection);
|
|
18626
19221
|
if (error)
|
|
18627
|
-
return "
|
|
19222
|
+
return "gracefulReconnection." + error;
|
|
18628
19223
|
}
|
|
18629
19224
|
}
|
|
18630
19225
|
if (message.reconnect != null && message.hasOwnProperty("reconnect")) {
|
|
@@ -18757,6 +19352,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18757
19352
|
return "refreshToken." + error;
|
|
18758
19353
|
}
|
|
18759
19354
|
}
|
|
19355
|
+
if (message.updateInteraction != null && message.hasOwnProperty("updateInteraction")) {
|
|
19356
|
+
if (properties.result === 1)
|
|
19357
|
+
return "result: multiple values";
|
|
19358
|
+
properties.result = 1;
|
|
19359
|
+
{
|
|
19360
|
+
let error = $root.vertexvis.protobuf.stream.UpdateInteractionResult.verify(message.updateInteraction);
|
|
19361
|
+
if (error)
|
|
19362
|
+
return "updateInteraction." + error;
|
|
19363
|
+
}
|
|
19364
|
+
}
|
|
18760
19365
|
return null;
|
|
18761
19366
|
};
|
|
18762
19367
|
|
|
@@ -18802,6 +19407,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18802
19407
|
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.endInteraction: object expected");
|
|
18803
19408
|
message.endInteraction = $root.vertexvis.protobuf.stream.EndInteractionResult.fromObject(object.endInteraction);
|
|
18804
19409
|
}
|
|
19410
|
+
if (object.gracefulReconnection != null) {
|
|
19411
|
+
if (typeof object.gracefulReconnection !== "object")
|
|
19412
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.gracefulReconnection: object expected");
|
|
19413
|
+
message.gracefulReconnection = $root.vertexvis.protobuf.stream.GracefulReconnectionResult.fromObject(object.gracefulReconnection);
|
|
19414
|
+
}
|
|
18805
19415
|
if (object.reconnect != null) {
|
|
18806
19416
|
if (typeof object.reconnect !== "object")
|
|
18807
19417
|
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.reconnect: object expected");
|
|
@@ -18867,6 +19477,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18867
19477
|
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.refreshToken: object expected");
|
|
18868
19478
|
message.refreshToken = $root.vertexvis.protobuf.stream.RefreshTokenResult.fromObject(object.refreshToken);
|
|
18869
19479
|
}
|
|
19480
|
+
if (object.updateInteraction != null) {
|
|
19481
|
+
if (typeof object.updateInteraction !== "object")
|
|
19482
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.updateInteraction: object expected");
|
|
19483
|
+
message.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionResult.fromObject(object.updateInteraction);
|
|
19484
|
+
}
|
|
18870
19485
|
return message;
|
|
18871
19486
|
};
|
|
18872
19487
|
|
|
@@ -18976,6 +19591,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
18976
19591
|
if (options.oneofs)
|
|
18977
19592
|
object.result = "refreshToken";
|
|
18978
19593
|
}
|
|
19594
|
+
if (message.gracefulReconnection != null && message.hasOwnProperty("gracefulReconnection")) {
|
|
19595
|
+
object.gracefulReconnection = $root.vertexvis.protobuf.stream.GracefulReconnectionResult.toObject(message.gracefulReconnection, options);
|
|
19596
|
+
if (options.oneofs)
|
|
19597
|
+
object.result = "gracefulReconnection";
|
|
19598
|
+
}
|
|
19599
|
+
if (message.updateInteraction != null && message.hasOwnProperty("updateInteraction")) {
|
|
19600
|
+
object.updateInteraction = $root.vertexvis.protobuf.stream.UpdateInteractionResult.toObject(message.updateInteraction, options);
|
|
19601
|
+
if (options.oneofs)
|
|
19602
|
+
object.result = "updateInteraction";
|
|
19603
|
+
}
|
|
18979
19604
|
return object;
|
|
18980
19605
|
};
|
|
18981
19606
|
|
|
@@ -19860,6 +20485,166 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19860
20485
|
return BeginInteractionResult;
|
|
19861
20486
|
})();
|
|
19862
20487
|
|
|
20488
|
+
stream.UpdateInteractionResult = (function() {
|
|
20489
|
+
|
|
20490
|
+
/**
|
|
20491
|
+
* Properties of an UpdateInteractionResult.
|
|
20492
|
+
* @memberof vertexvis.protobuf.stream
|
|
20493
|
+
* @interface IUpdateInteractionResult
|
|
20494
|
+
*/
|
|
20495
|
+
|
|
20496
|
+
/**
|
|
20497
|
+
* Constructs a new UpdateInteractionResult.
|
|
20498
|
+
* @memberof vertexvis.protobuf.stream
|
|
20499
|
+
* @classdesc Represents an UpdateInteractionResult.
|
|
20500
|
+
* @implements IUpdateInteractionResult
|
|
20501
|
+
* @constructor
|
|
20502
|
+
* @param {vertexvis.protobuf.stream.IUpdateInteractionResult=} [properties] Properties to set
|
|
20503
|
+
*/
|
|
20504
|
+
function UpdateInteractionResult(properties) {
|
|
20505
|
+
if (properties)
|
|
20506
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20507
|
+
if (properties[keys[i]] != null)
|
|
20508
|
+
this[keys[i]] = properties[keys[i]];
|
|
20509
|
+
}
|
|
20510
|
+
|
|
20511
|
+
/**
|
|
20512
|
+
* Creates a new UpdateInteractionResult instance using the specified properties.
|
|
20513
|
+
* @function create
|
|
20514
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20515
|
+
* @static
|
|
20516
|
+
* @param {vertexvis.protobuf.stream.IUpdateInteractionResult=} [properties] Properties to set
|
|
20517
|
+
* @returns {vertexvis.protobuf.stream.UpdateInteractionResult} UpdateInteractionResult instance
|
|
20518
|
+
*/
|
|
20519
|
+
UpdateInteractionResult.create = function create(properties) {
|
|
20520
|
+
return new UpdateInteractionResult(properties);
|
|
20521
|
+
};
|
|
20522
|
+
|
|
20523
|
+
/**
|
|
20524
|
+
* Encodes the specified UpdateInteractionResult message. Does not implicitly {@link vertexvis.protobuf.stream.UpdateInteractionResult.verify|verify} messages.
|
|
20525
|
+
* @function encode
|
|
20526
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20527
|
+
* @static
|
|
20528
|
+
* @param {vertexvis.protobuf.stream.IUpdateInteractionResult} message UpdateInteractionResult message or plain object to encode
|
|
20529
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20530
|
+
* @returns {$protobuf.Writer} Writer
|
|
20531
|
+
*/
|
|
20532
|
+
UpdateInteractionResult.encode = function encode(message, writer) {
|
|
20533
|
+
if (!writer)
|
|
20534
|
+
writer = $Writer.create();
|
|
20535
|
+
return writer;
|
|
20536
|
+
};
|
|
20537
|
+
|
|
20538
|
+
/**
|
|
20539
|
+
* Encodes the specified UpdateInteractionResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.UpdateInteractionResult.verify|verify} messages.
|
|
20540
|
+
* @function encodeDelimited
|
|
20541
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20542
|
+
* @static
|
|
20543
|
+
* @param {vertexvis.protobuf.stream.IUpdateInteractionResult} message UpdateInteractionResult message or plain object to encode
|
|
20544
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20545
|
+
* @returns {$protobuf.Writer} Writer
|
|
20546
|
+
*/
|
|
20547
|
+
UpdateInteractionResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20548
|
+
return this.encode(message, writer).ldelim();
|
|
20549
|
+
};
|
|
20550
|
+
|
|
20551
|
+
/**
|
|
20552
|
+
* Decodes an UpdateInteractionResult message from the specified reader or buffer.
|
|
20553
|
+
* @function decode
|
|
20554
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20555
|
+
* @static
|
|
20556
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20557
|
+
* @param {number} [length] Message length if known beforehand
|
|
20558
|
+
* @returns {vertexvis.protobuf.stream.UpdateInteractionResult} UpdateInteractionResult
|
|
20559
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20560
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20561
|
+
*/
|
|
20562
|
+
UpdateInteractionResult.decode = function decode(reader, length) {
|
|
20563
|
+
if (!(reader instanceof $Reader))
|
|
20564
|
+
reader = $Reader.create(reader);
|
|
20565
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.UpdateInteractionResult();
|
|
20566
|
+
while (reader.pos < end) {
|
|
20567
|
+
let tag = reader.uint32();
|
|
20568
|
+
switch (tag >>> 3) {
|
|
20569
|
+
default:
|
|
20570
|
+
reader.skipType(tag & 7);
|
|
20571
|
+
break;
|
|
20572
|
+
}
|
|
20573
|
+
}
|
|
20574
|
+
return message;
|
|
20575
|
+
};
|
|
20576
|
+
|
|
20577
|
+
/**
|
|
20578
|
+
* Decodes an UpdateInteractionResult message from the specified reader or buffer, length delimited.
|
|
20579
|
+
* @function decodeDelimited
|
|
20580
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20581
|
+
* @static
|
|
20582
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20583
|
+
* @returns {vertexvis.protobuf.stream.UpdateInteractionResult} UpdateInteractionResult
|
|
20584
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20585
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20586
|
+
*/
|
|
20587
|
+
UpdateInteractionResult.decodeDelimited = function decodeDelimited(reader) {
|
|
20588
|
+
if (!(reader instanceof $Reader))
|
|
20589
|
+
reader = new $Reader(reader);
|
|
20590
|
+
return this.decode(reader, reader.uint32());
|
|
20591
|
+
};
|
|
20592
|
+
|
|
20593
|
+
/**
|
|
20594
|
+
* Verifies an UpdateInteractionResult message.
|
|
20595
|
+
* @function verify
|
|
20596
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20597
|
+
* @static
|
|
20598
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20599
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20600
|
+
*/
|
|
20601
|
+
UpdateInteractionResult.verify = function verify(message) {
|
|
20602
|
+
if (typeof message !== "object" || message === null)
|
|
20603
|
+
return "object expected";
|
|
20604
|
+
return null;
|
|
20605
|
+
};
|
|
20606
|
+
|
|
20607
|
+
/**
|
|
20608
|
+
* Creates an UpdateInteractionResult message from a plain object. Also converts values to their respective internal types.
|
|
20609
|
+
* @function fromObject
|
|
20610
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20611
|
+
* @static
|
|
20612
|
+
* @param {Object.<string,*>} object Plain object
|
|
20613
|
+
* @returns {vertexvis.protobuf.stream.UpdateInteractionResult} UpdateInteractionResult
|
|
20614
|
+
*/
|
|
20615
|
+
UpdateInteractionResult.fromObject = function fromObject(object) {
|
|
20616
|
+
if (object instanceof $root.vertexvis.protobuf.stream.UpdateInteractionResult)
|
|
20617
|
+
return object;
|
|
20618
|
+
return new $root.vertexvis.protobuf.stream.UpdateInteractionResult();
|
|
20619
|
+
};
|
|
20620
|
+
|
|
20621
|
+
/**
|
|
20622
|
+
* Creates a plain object from an UpdateInteractionResult message. Also converts values to other types if specified.
|
|
20623
|
+
* @function toObject
|
|
20624
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20625
|
+
* @static
|
|
20626
|
+
* @param {vertexvis.protobuf.stream.UpdateInteractionResult} message UpdateInteractionResult
|
|
20627
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20628
|
+
* @returns {Object.<string,*>} Plain object
|
|
20629
|
+
*/
|
|
20630
|
+
UpdateInteractionResult.toObject = function toObject() {
|
|
20631
|
+
return {};
|
|
20632
|
+
};
|
|
20633
|
+
|
|
20634
|
+
/**
|
|
20635
|
+
* Converts this UpdateInteractionResult to JSON.
|
|
20636
|
+
* @function toJSON
|
|
20637
|
+
* @memberof vertexvis.protobuf.stream.UpdateInteractionResult
|
|
20638
|
+
* @instance
|
|
20639
|
+
* @returns {Object.<string,*>} JSON object
|
|
20640
|
+
*/
|
|
20641
|
+
UpdateInteractionResult.prototype.toJSON = function toJSON() {
|
|
20642
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
20643
|
+
};
|
|
20644
|
+
|
|
20645
|
+
return UpdateInteractionResult;
|
|
20646
|
+
})();
|
|
20647
|
+
|
|
19863
20648
|
stream.EndInteractionResult = (function() {
|
|
19864
20649
|
|
|
19865
20650
|
/**
|
|
@@ -22695,6 +23480,166 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
22695
23480
|
return UpdateCrossSectioningResult;
|
|
22696
23481
|
})();
|
|
22697
23482
|
|
|
23483
|
+
stream.GracefulReconnectionResult = (function() {
|
|
23484
|
+
|
|
23485
|
+
/**
|
|
23486
|
+
* Properties of a GracefulReconnectionResult.
|
|
23487
|
+
* @memberof vertexvis.protobuf.stream
|
|
23488
|
+
* @interface IGracefulReconnectionResult
|
|
23489
|
+
*/
|
|
23490
|
+
|
|
23491
|
+
/**
|
|
23492
|
+
* Constructs a new GracefulReconnectionResult.
|
|
23493
|
+
* @memberof vertexvis.protobuf.stream
|
|
23494
|
+
* @classdesc Represents a GracefulReconnectionResult.
|
|
23495
|
+
* @implements IGracefulReconnectionResult
|
|
23496
|
+
* @constructor
|
|
23497
|
+
* @param {vertexvis.protobuf.stream.IGracefulReconnectionResult=} [properties] Properties to set
|
|
23498
|
+
*/
|
|
23499
|
+
function GracefulReconnectionResult(properties) {
|
|
23500
|
+
if (properties)
|
|
23501
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23502
|
+
if (properties[keys[i]] != null)
|
|
23503
|
+
this[keys[i]] = properties[keys[i]];
|
|
23504
|
+
}
|
|
23505
|
+
|
|
23506
|
+
/**
|
|
23507
|
+
* Creates a new GracefulReconnectionResult instance using the specified properties.
|
|
23508
|
+
* @function create
|
|
23509
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23510
|
+
* @static
|
|
23511
|
+
* @param {vertexvis.protobuf.stream.IGracefulReconnectionResult=} [properties] Properties to set
|
|
23512
|
+
* @returns {vertexvis.protobuf.stream.GracefulReconnectionResult} GracefulReconnectionResult instance
|
|
23513
|
+
*/
|
|
23514
|
+
GracefulReconnectionResult.create = function create(properties) {
|
|
23515
|
+
return new GracefulReconnectionResult(properties);
|
|
23516
|
+
};
|
|
23517
|
+
|
|
23518
|
+
/**
|
|
23519
|
+
* Encodes the specified GracefulReconnectionResult message. Does not implicitly {@link vertexvis.protobuf.stream.GracefulReconnectionResult.verify|verify} messages.
|
|
23520
|
+
* @function encode
|
|
23521
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23522
|
+
* @static
|
|
23523
|
+
* @param {vertexvis.protobuf.stream.IGracefulReconnectionResult} message GracefulReconnectionResult message or plain object to encode
|
|
23524
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23525
|
+
* @returns {$protobuf.Writer} Writer
|
|
23526
|
+
*/
|
|
23527
|
+
GracefulReconnectionResult.encode = function encode(message, writer) {
|
|
23528
|
+
if (!writer)
|
|
23529
|
+
writer = $Writer.create();
|
|
23530
|
+
return writer;
|
|
23531
|
+
};
|
|
23532
|
+
|
|
23533
|
+
/**
|
|
23534
|
+
* Encodes the specified GracefulReconnectionResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.GracefulReconnectionResult.verify|verify} messages.
|
|
23535
|
+
* @function encodeDelimited
|
|
23536
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23537
|
+
* @static
|
|
23538
|
+
* @param {vertexvis.protobuf.stream.IGracefulReconnectionResult} message GracefulReconnectionResult message or plain object to encode
|
|
23539
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23540
|
+
* @returns {$protobuf.Writer} Writer
|
|
23541
|
+
*/
|
|
23542
|
+
GracefulReconnectionResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23543
|
+
return this.encode(message, writer).ldelim();
|
|
23544
|
+
};
|
|
23545
|
+
|
|
23546
|
+
/**
|
|
23547
|
+
* Decodes a GracefulReconnectionResult message from the specified reader or buffer.
|
|
23548
|
+
* @function decode
|
|
23549
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23550
|
+
* @static
|
|
23551
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23552
|
+
* @param {number} [length] Message length if known beforehand
|
|
23553
|
+
* @returns {vertexvis.protobuf.stream.GracefulReconnectionResult} GracefulReconnectionResult
|
|
23554
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23555
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23556
|
+
*/
|
|
23557
|
+
GracefulReconnectionResult.decode = function decode(reader, length) {
|
|
23558
|
+
if (!(reader instanceof $Reader))
|
|
23559
|
+
reader = $Reader.create(reader);
|
|
23560
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.GracefulReconnectionResult();
|
|
23561
|
+
while (reader.pos < end) {
|
|
23562
|
+
let tag = reader.uint32();
|
|
23563
|
+
switch (tag >>> 3) {
|
|
23564
|
+
default:
|
|
23565
|
+
reader.skipType(tag & 7);
|
|
23566
|
+
break;
|
|
23567
|
+
}
|
|
23568
|
+
}
|
|
23569
|
+
return message;
|
|
23570
|
+
};
|
|
23571
|
+
|
|
23572
|
+
/**
|
|
23573
|
+
* Decodes a GracefulReconnectionResult message from the specified reader or buffer, length delimited.
|
|
23574
|
+
* @function decodeDelimited
|
|
23575
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23576
|
+
* @static
|
|
23577
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23578
|
+
* @returns {vertexvis.protobuf.stream.GracefulReconnectionResult} GracefulReconnectionResult
|
|
23579
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23580
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23581
|
+
*/
|
|
23582
|
+
GracefulReconnectionResult.decodeDelimited = function decodeDelimited(reader) {
|
|
23583
|
+
if (!(reader instanceof $Reader))
|
|
23584
|
+
reader = new $Reader(reader);
|
|
23585
|
+
return this.decode(reader, reader.uint32());
|
|
23586
|
+
};
|
|
23587
|
+
|
|
23588
|
+
/**
|
|
23589
|
+
* Verifies a GracefulReconnectionResult message.
|
|
23590
|
+
* @function verify
|
|
23591
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23592
|
+
* @static
|
|
23593
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
23594
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23595
|
+
*/
|
|
23596
|
+
GracefulReconnectionResult.verify = function verify(message) {
|
|
23597
|
+
if (typeof message !== "object" || message === null)
|
|
23598
|
+
return "object expected";
|
|
23599
|
+
return null;
|
|
23600
|
+
};
|
|
23601
|
+
|
|
23602
|
+
/**
|
|
23603
|
+
* Creates a GracefulReconnectionResult message from a plain object. Also converts values to their respective internal types.
|
|
23604
|
+
* @function fromObject
|
|
23605
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23606
|
+
* @static
|
|
23607
|
+
* @param {Object.<string,*>} object Plain object
|
|
23608
|
+
* @returns {vertexvis.protobuf.stream.GracefulReconnectionResult} GracefulReconnectionResult
|
|
23609
|
+
*/
|
|
23610
|
+
GracefulReconnectionResult.fromObject = function fromObject(object) {
|
|
23611
|
+
if (object instanceof $root.vertexvis.protobuf.stream.GracefulReconnectionResult)
|
|
23612
|
+
return object;
|
|
23613
|
+
return new $root.vertexvis.protobuf.stream.GracefulReconnectionResult();
|
|
23614
|
+
};
|
|
23615
|
+
|
|
23616
|
+
/**
|
|
23617
|
+
* Creates a plain object from a GracefulReconnectionResult message. Also converts values to other types if specified.
|
|
23618
|
+
* @function toObject
|
|
23619
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23620
|
+
* @static
|
|
23621
|
+
* @param {vertexvis.protobuf.stream.GracefulReconnectionResult} message GracefulReconnectionResult
|
|
23622
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23623
|
+
* @returns {Object.<string,*>} Plain object
|
|
23624
|
+
*/
|
|
23625
|
+
GracefulReconnectionResult.toObject = function toObject() {
|
|
23626
|
+
return {};
|
|
23627
|
+
};
|
|
23628
|
+
|
|
23629
|
+
/**
|
|
23630
|
+
* Converts this GracefulReconnectionResult to JSON.
|
|
23631
|
+
* @function toJSON
|
|
23632
|
+
* @memberof vertexvis.protobuf.stream.GracefulReconnectionResult
|
|
23633
|
+
* @instance
|
|
23634
|
+
* @returns {Object.<string,*>} JSON object
|
|
23635
|
+
*/
|
|
23636
|
+
GracefulReconnectionResult.prototype.toJSON = function toJSON() {
|
|
23637
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
23638
|
+
};
|
|
23639
|
+
|
|
23640
|
+
return GracefulReconnectionResult;
|
|
23641
|
+
})();
|
|
23642
|
+
|
|
22698
23643
|
return stream;
|
|
22699
23644
|
})();
|
|
22700
23645
|
|
|
@@ -35690,9 +36635,10 @@ var StreamApi = /** @class */ (function () {
|
|
|
35690
36635
|
* @param withResponse Indicates if the server should reply with a response.
|
|
35691
36636
|
* Defaults to `true`.
|
|
35692
36637
|
*/
|
|
35693
|
-
StreamApi.prototype.beginInteraction = function (withResponse) {
|
|
36638
|
+
StreamApi.prototype.beginInteraction = function (payload, withResponse) {
|
|
36639
|
+
if (payload === void 0) { payload = {}; }
|
|
35694
36640
|
if (withResponse === void 0) { withResponse = true; }
|
|
35695
|
-
return this.sendRequest({ beginInteraction:
|
|
36641
|
+
return this.sendRequest({ beginInteraction: payload }, withResponse);
|
|
35696
36642
|
};
|
|
35697
36643
|
/**
|
|
35698
36644
|
* Sends a request to update the position of the scene's camera.
|
|
@@ -35733,6 +36679,21 @@ var StreamApi = /** @class */ (function () {
|
|
|
35733
36679
|
if (withResponse === void 0) { withResponse = true; }
|
|
35734
36680
|
return this.sendRequest({ flyTo: payload }, withResponse);
|
|
35735
36681
|
};
|
|
36682
|
+
/**
|
|
36683
|
+
* Sends a request to update the specified interaction.
|
|
36684
|
+
*
|
|
36685
|
+
* Use `withResponse` to indicate if the server should reply with a response.
|
|
36686
|
+
* If `false`, the returned promise will complete immediately. Otherwise,
|
|
36687
|
+
* it'll complete when a response is received.
|
|
36688
|
+
*
|
|
36689
|
+
* @param payload The payload of the request.
|
|
36690
|
+
* @param withResponse Indicates if the server should reply with a response.
|
|
36691
|
+
* Defaults to `true`.
|
|
36692
|
+
*/
|
|
36693
|
+
StreamApi.prototype.updateInteraction = function (payload, withResponse) {
|
|
36694
|
+
if (withResponse === void 0) { withResponse = true; }
|
|
36695
|
+
return this.sendRequest({ updateInteraction: payload }, withResponse);
|
|
36696
|
+
};
|
|
35736
36697
|
/**
|
|
35737
36698
|
* Sends a request to update the dimensions of the frame.
|
|
35738
36699
|
*
|
|
@@ -35831,9 +36792,10 @@ var StreamApi = /** @class */ (function () {
|
|
|
35831
36792
|
* @param withResponse Indicates if the server should reply with a response.
|
|
35832
36793
|
* Defaults to `true`.
|
|
35833
36794
|
*/
|
|
35834
|
-
StreamApi.prototype.endInteraction = function (withResponse) {
|
|
36795
|
+
StreamApi.prototype.endInteraction = function (payload, withResponse) {
|
|
36796
|
+
if (payload === void 0) { payload = {}; }
|
|
35835
36797
|
if (withResponse === void 0) { withResponse = true; }
|
|
35836
|
-
return this.sendRequest({ endInteraction:
|
|
36798
|
+
return this.sendRequest({ endInteraction: payload }, withResponse);
|
|
35837
36799
|
};
|
|
35838
36800
|
/**
|
|
35839
36801
|
* Sends a request to sync the clocks between the client and server.
|