@vertexvis/stream-api 0.12.0-canary.19 → 0.12.0-canary.22
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 +463 -4
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +463 -4
- package/dist/bundle.esm.js.map +1 -1
- package/dist/streamApi.d.ts +13 -0
- package/package.json +5 -5
package/dist/bundle.cjs.js
CHANGED
|
@@ -11102,6 +11102,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11102
11102
|
* @property {vertexvis.protobuf.stream.ILoadSceneViewStatePayload|null} [loadSceneViewState] StreamRequest loadSceneViewState
|
|
11103
11103
|
* @property {vertexvis.protobuf.stream.IUpdateCrossSectioningPayload|null} [updateCrossSectioning] StreamRequest updateCrossSectioning
|
|
11104
11104
|
* @property {vertexvis.protobuf.stream.IGetStencilBufferPayload|null} [getStencilBuffer] StreamRequest getStencilBuffer
|
|
11105
|
+
* @property {vertexvis.protobuf.stream.IResetViewPlayload|null} [resetView] StreamRequest resetView
|
|
11105
11106
|
*/
|
|
11106
11107
|
|
|
11107
11108
|
/**
|
|
@@ -11263,17 +11264,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11263
11264
|
*/
|
|
11264
11265
|
StreamRequest.prototype.getStencilBuffer = null;
|
|
11265
11266
|
|
|
11267
|
+
/**
|
|
11268
|
+
* StreamRequest resetView.
|
|
11269
|
+
* @member {vertexvis.protobuf.stream.IResetViewPlayload|null|undefined} resetView
|
|
11270
|
+
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
11271
|
+
* @instance
|
|
11272
|
+
*/
|
|
11273
|
+
StreamRequest.prototype.resetView = null;
|
|
11274
|
+
|
|
11266
11275
|
// OneOf field names bound to virtual getters and setters
|
|
11267
11276
|
let $oneOfFields;
|
|
11268
11277
|
|
|
11269
11278
|
/**
|
|
11270
11279
|
* StreamRequest payload.
|
|
11271
|
-
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|undefined} payload
|
|
11280
|
+
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"gracefulReconnection"|"reconnect"|"hitItems"|"createSceneAlteration"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"getStencilBuffer"|"resetView"|undefined} payload
|
|
11272
11281
|
* @memberof vertexvis.protobuf.stream.StreamRequest
|
|
11273
11282
|
* @instance
|
|
11274
11283
|
*/
|
|
11275
11284
|
Object.defineProperty(StreamRequest.prototype, "payload", {
|
|
11276
|
-
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer"]),
|
|
11285
|
+
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "gracefulReconnection", "reconnect", "hitItems", "createSceneAlteration", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "getStencilBuffer", "resetView"]),
|
|
11277
11286
|
set: $util.oneOfSetter($oneOfFields)
|
|
11278
11287
|
});
|
|
11279
11288
|
|
|
@@ -11337,6 +11346,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11337
11346
|
$root.vertexvis.protobuf.stream.UpdateCrossSectioningPayload.encode(message.updateCrossSectioning, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
11338
11347
|
if (message.getStencilBuffer != null && Object.hasOwnProperty.call(message, "getStencilBuffer"))
|
|
11339
11348
|
$root.vertexvis.protobuf.stream.GetStencilBufferPayload.encode(message.getStencilBuffer, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
11349
|
+
if (message.resetView != null && Object.hasOwnProperty.call(message, "resetView"))
|
|
11350
|
+
$root.vertexvis.protobuf.stream.ResetViewPlayload.encode(message.resetView, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
11340
11351
|
return writer;
|
|
11341
11352
|
};
|
|
11342
11353
|
|
|
@@ -11425,6 +11436,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11425
11436
|
case 18:
|
|
11426
11437
|
message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.decode(reader, reader.uint32());
|
|
11427
11438
|
break;
|
|
11439
|
+
case 19:
|
|
11440
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.decode(reader, reader.uint32());
|
|
11441
|
+
break;
|
|
11428
11442
|
default:
|
|
11429
11443
|
reader.skipType(tag & 7);
|
|
11430
11444
|
break;
|
|
@@ -11634,6 +11648,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11634
11648
|
return "getStencilBuffer." + error;
|
|
11635
11649
|
}
|
|
11636
11650
|
}
|
|
11651
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
11652
|
+
if (properties.payload === 1)
|
|
11653
|
+
return "payload: multiple values";
|
|
11654
|
+
properties.payload = 1;
|
|
11655
|
+
{
|
|
11656
|
+
let error = $root.vertexvis.protobuf.stream.ResetViewPlayload.verify(message.resetView);
|
|
11657
|
+
if (error)
|
|
11658
|
+
return "resetView." + error;
|
|
11659
|
+
}
|
|
11660
|
+
}
|
|
11637
11661
|
return null;
|
|
11638
11662
|
};
|
|
11639
11663
|
|
|
@@ -11739,6 +11763,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11739
11763
|
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.getStencilBuffer: object expected");
|
|
11740
11764
|
message.getStencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferPayload.fromObject(object.getStencilBuffer);
|
|
11741
11765
|
}
|
|
11766
|
+
if (object.resetView != null) {
|
|
11767
|
+
if (typeof object.resetView !== "object")
|
|
11768
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamRequest.resetView: object expected");
|
|
11769
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.fromObject(object.resetView);
|
|
11770
|
+
}
|
|
11742
11771
|
return message;
|
|
11743
11772
|
};
|
|
11744
11773
|
|
|
@@ -11844,6 +11873,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
11844
11873
|
if (options.oneofs)
|
|
11845
11874
|
object.payload = "getStencilBuffer";
|
|
11846
11875
|
}
|
|
11876
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
11877
|
+
object.resetView = $root.vertexvis.protobuf.stream.ResetViewPlayload.toObject(message.resetView, options);
|
|
11878
|
+
if (options.oneofs)
|
|
11879
|
+
object.payload = "resetView";
|
|
11880
|
+
}
|
|
11847
11881
|
return object;
|
|
11848
11882
|
};
|
|
11849
11883
|
|
|
@@ -15567,6 +15601,221 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15567
15601
|
return LoadSceneViewStatePayload;
|
|
15568
15602
|
})();
|
|
15569
15603
|
|
|
15604
|
+
stream.ResetViewPlayload = (function() {
|
|
15605
|
+
|
|
15606
|
+
/**
|
|
15607
|
+
* Properties of a ResetViewPlayload.
|
|
15608
|
+
* @memberof vertexvis.protobuf.stream
|
|
15609
|
+
* @interface IResetViewPlayload
|
|
15610
|
+
* @property {google.protobuf.IStringValue|null} [frameCorrelationId] ResetViewPlayload frameCorrelationId
|
|
15611
|
+
* @property {boolean|null} [includeCamera] ResetViewPlayload includeCamera
|
|
15612
|
+
*/
|
|
15613
|
+
|
|
15614
|
+
/**
|
|
15615
|
+
* Constructs a new ResetViewPlayload.
|
|
15616
|
+
* @memberof vertexvis.protobuf.stream
|
|
15617
|
+
* @classdesc Represents a ResetViewPlayload.
|
|
15618
|
+
* @implements IResetViewPlayload
|
|
15619
|
+
* @constructor
|
|
15620
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
|
|
15621
|
+
*/
|
|
15622
|
+
function ResetViewPlayload(properties) {
|
|
15623
|
+
if (properties)
|
|
15624
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15625
|
+
if (properties[keys[i]] != null)
|
|
15626
|
+
this[keys[i]] = properties[keys[i]];
|
|
15627
|
+
}
|
|
15628
|
+
|
|
15629
|
+
/**
|
|
15630
|
+
* ResetViewPlayload frameCorrelationId.
|
|
15631
|
+
* @member {google.protobuf.IStringValue|null|undefined} frameCorrelationId
|
|
15632
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15633
|
+
* @instance
|
|
15634
|
+
*/
|
|
15635
|
+
ResetViewPlayload.prototype.frameCorrelationId = null;
|
|
15636
|
+
|
|
15637
|
+
/**
|
|
15638
|
+
* ResetViewPlayload includeCamera.
|
|
15639
|
+
* @member {boolean} includeCamera
|
|
15640
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15641
|
+
* @instance
|
|
15642
|
+
*/
|
|
15643
|
+
ResetViewPlayload.prototype.includeCamera = false;
|
|
15644
|
+
|
|
15645
|
+
/**
|
|
15646
|
+
* Creates a new ResetViewPlayload instance using the specified properties.
|
|
15647
|
+
* @function create
|
|
15648
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15649
|
+
* @static
|
|
15650
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload=} [properties] Properties to set
|
|
15651
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload instance
|
|
15652
|
+
*/
|
|
15653
|
+
ResetViewPlayload.create = function create(properties) {
|
|
15654
|
+
return new ResetViewPlayload(properties);
|
|
15655
|
+
};
|
|
15656
|
+
|
|
15657
|
+
/**
|
|
15658
|
+
* Encodes the specified ResetViewPlayload message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
|
|
15659
|
+
* @function encode
|
|
15660
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15661
|
+
* @static
|
|
15662
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
|
|
15663
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15664
|
+
* @returns {$protobuf.Writer} Writer
|
|
15665
|
+
*/
|
|
15666
|
+
ResetViewPlayload.encode = function encode(message, writer) {
|
|
15667
|
+
if (!writer)
|
|
15668
|
+
writer = $Writer.create();
|
|
15669
|
+
if (message.frameCorrelationId != null && Object.hasOwnProperty.call(message, "frameCorrelationId"))
|
|
15670
|
+
$root.google.protobuf.StringValue.encode(message.frameCorrelationId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
15671
|
+
if (message.includeCamera != null && Object.hasOwnProperty.call(message, "includeCamera"))
|
|
15672
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeCamera);
|
|
15673
|
+
return writer;
|
|
15674
|
+
};
|
|
15675
|
+
|
|
15676
|
+
/**
|
|
15677
|
+
* Encodes the specified ResetViewPlayload message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewPlayload.verify|verify} messages.
|
|
15678
|
+
* @function encodeDelimited
|
|
15679
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15680
|
+
* @static
|
|
15681
|
+
* @param {vertexvis.protobuf.stream.IResetViewPlayload} message ResetViewPlayload message or plain object to encode
|
|
15682
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15683
|
+
* @returns {$protobuf.Writer} Writer
|
|
15684
|
+
*/
|
|
15685
|
+
ResetViewPlayload.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15686
|
+
return this.encode(message, writer).ldelim();
|
|
15687
|
+
};
|
|
15688
|
+
|
|
15689
|
+
/**
|
|
15690
|
+
* Decodes a ResetViewPlayload message from the specified reader or buffer.
|
|
15691
|
+
* @function decode
|
|
15692
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15693
|
+
* @static
|
|
15694
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15695
|
+
* @param {number} [length] Message length if known beforehand
|
|
15696
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15697
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15698
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15699
|
+
*/
|
|
15700
|
+
ResetViewPlayload.decode = function decode(reader, length) {
|
|
15701
|
+
if (!(reader instanceof $Reader))
|
|
15702
|
+
reader = $Reader.create(reader);
|
|
15703
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
|
|
15704
|
+
while (reader.pos < end) {
|
|
15705
|
+
let tag = reader.uint32();
|
|
15706
|
+
switch (tag >>> 3) {
|
|
15707
|
+
case 1:
|
|
15708
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.decode(reader, reader.uint32());
|
|
15709
|
+
break;
|
|
15710
|
+
case 2:
|
|
15711
|
+
message.includeCamera = reader.bool();
|
|
15712
|
+
break;
|
|
15713
|
+
default:
|
|
15714
|
+
reader.skipType(tag & 7);
|
|
15715
|
+
break;
|
|
15716
|
+
}
|
|
15717
|
+
}
|
|
15718
|
+
return message;
|
|
15719
|
+
};
|
|
15720
|
+
|
|
15721
|
+
/**
|
|
15722
|
+
* Decodes a ResetViewPlayload message from the specified reader or buffer, length delimited.
|
|
15723
|
+
* @function decodeDelimited
|
|
15724
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15725
|
+
* @static
|
|
15726
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15727
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15728
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15729
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15730
|
+
*/
|
|
15731
|
+
ResetViewPlayload.decodeDelimited = function decodeDelimited(reader) {
|
|
15732
|
+
if (!(reader instanceof $Reader))
|
|
15733
|
+
reader = new $Reader(reader);
|
|
15734
|
+
return this.decode(reader, reader.uint32());
|
|
15735
|
+
};
|
|
15736
|
+
|
|
15737
|
+
/**
|
|
15738
|
+
* Verifies a ResetViewPlayload message.
|
|
15739
|
+
* @function verify
|
|
15740
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15741
|
+
* @static
|
|
15742
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15743
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15744
|
+
*/
|
|
15745
|
+
ResetViewPlayload.verify = function verify(message) {
|
|
15746
|
+
if (typeof message !== "object" || message === null)
|
|
15747
|
+
return "object expected";
|
|
15748
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId")) {
|
|
15749
|
+
let error = $root.google.protobuf.StringValue.verify(message.frameCorrelationId);
|
|
15750
|
+
if (error)
|
|
15751
|
+
return "frameCorrelationId." + error;
|
|
15752
|
+
}
|
|
15753
|
+
if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
|
|
15754
|
+
if (typeof message.includeCamera !== "boolean")
|
|
15755
|
+
return "includeCamera: boolean expected";
|
|
15756
|
+
return null;
|
|
15757
|
+
};
|
|
15758
|
+
|
|
15759
|
+
/**
|
|
15760
|
+
* Creates a ResetViewPlayload message from a plain object. Also converts values to their respective internal types.
|
|
15761
|
+
* @function fromObject
|
|
15762
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15763
|
+
* @static
|
|
15764
|
+
* @param {Object.<string,*>} object Plain object
|
|
15765
|
+
* @returns {vertexvis.protobuf.stream.ResetViewPlayload} ResetViewPlayload
|
|
15766
|
+
*/
|
|
15767
|
+
ResetViewPlayload.fromObject = function fromObject(object) {
|
|
15768
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ResetViewPlayload)
|
|
15769
|
+
return object;
|
|
15770
|
+
let message = new $root.vertexvis.protobuf.stream.ResetViewPlayload();
|
|
15771
|
+
if (object.frameCorrelationId != null) {
|
|
15772
|
+
if (typeof object.frameCorrelationId !== "object")
|
|
15773
|
+
throw TypeError(".vertexvis.protobuf.stream.ResetViewPlayload.frameCorrelationId: object expected");
|
|
15774
|
+
message.frameCorrelationId = $root.google.protobuf.StringValue.fromObject(object.frameCorrelationId);
|
|
15775
|
+
}
|
|
15776
|
+
if (object.includeCamera != null)
|
|
15777
|
+
message.includeCamera = Boolean(object.includeCamera);
|
|
15778
|
+
return message;
|
|
15779
|
+
};
|
|
15780
|
+
|
|
15781
|
+
/**
|
|
15782
|
+
* Creates a plain object from a ResetViewPlayload message. Also converts values to other types if specified.
|
|
15783
|
+
* @function toObject
|
|
15784
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15785
|
+
* @static
|
|
15786
|
+
* @param {vertexvis.protobuf.stream.ResetViewPlayload} message ResetViewPlayload
|
|
15787
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15788
|
+
* @returns {Object.<string,*>} Plain object
|
|
15789
|
+
*/
|
|
15790
|
+
ResetViewPlayload.toObject = function toObject(message, options) {
|
|
15791
|
+
if (!options)
|
|
15792
|
+
options = {};
|
|
15793
|
+
let object = {};
|
|
15794
|
+
if (options.defaults) {
|
|
15795
|
+
object.frameCorrelationId = null;
|
|
15796
|
+
object.includeCamera = false;
|
|
15797
|
+
}
|
|
15798
|
+
if (message.frameCorrelationId != null && message.hasOwnProperty("frameCorrelationId"))
|
|
15799
|
+
object.frameCorrelationId = $root.google.protobuf.StringValue.toObject(message.frameCorrelationId, options);
|
|
15800
|
+
if (message.includeCamera != null && message.hasOwnProperty("includeCamera"))
|
|
15801
|
+
object.includeCamera = message.includeCamera;
|
|
15802
|
+
return object;
|
|
15803
|
+
};
|
|
15804
|
+
|
|
15805
|
+
/**
|
|
15806
|
+
* Converts this ResetViewPlayload to JSON.
|
|
15807
|
+
* @function toJSON
|
|
15808
|
+
* @memberof vertexvis.protobuf.stream.ResetViewPlayload
|
|
15809
|
+
* @instance
|
|
15810
|
+
* @returns {Object.<string,*>} JSON object
|
|
15811
|
+
*/
|
|
15812
|
+
ResetViewPlayload.prototype.toJSON = function toJSON() {
|
|
15813
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
15814
|
+
};
|
|
15815
|
+
|
|
15816
|
+
return ResetViewPlayload;
|
|
15817
|
+
})();
|
|
15818
|
+
|
|
15570
15819
|
stream.UpdateCrossSectioningPayload = (function() {
|
|
15571
15820
|
|
|
15572
15821
|
/**
|
|
@@ -15997,6 +16246,7 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
15997
16246
|
* @property {vertexvis.protobuf.stream.ILoadSceneViewStateResult|null} [loadSceneViewState] StreamResponse loadSceneViewState
|
|
15998
16247
|
* @property {vertexvis.protobuf.stream.IUpdateCrossSectioningResult|null} [updateCrossSectioning] StreamResponse updateCrossSectioning
|
|
15999
16248
|
* @property {vertexvis.protobuf.stream.IGetStencilBufferResult|null} [stencilBuffer] StreamResponse stencilBuffer
|
|
16249
|
+
* @property {vertexvis.protobuf.stream.IResetViewResult|null} [resetView] StreamResponse resetView
|
|
16000
16250
|
*/
|
|
16001
16251
|
|
|
16002
16252
|
/**
|
|
@@ -16150,17 +16400,25 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16150
16400
|
*/
|
|
16151
16401
|
StreamResponse.prototype.stencilBuffer = null;
|
|
16152
16402
|
|
|
16403
|
+
/**
|
|
16404
|
+
* StreamResponse resetView.
|
|
16405
|
+
* @member {vertexvis.protobuf.stream.IResetViewResult|null|undefined} resetView
|
|
16406
|
+
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
16407
|
+
* @instance
|
|
16408
|
+
*/
|
|
16409
|
+
StreamResponse.prototype.resetView = null;
|
|
16410
|
+
|
|
16153
16411
|
// OneOf field names bound to virtual getters and setters
|
|
16154
16412
|
let $oneOfFields;
|
|
16155
16413
|
|
|
16156
16414
|
/**
|
|
16157
16415
|
* StreamResponse result.
|
|
16158
|
-
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|undefined} result
|
|
16416
|
+
* @member {"startStream"|"updateCamera"|"beginInteraction"|"endInteraction"|"reconnect"|"hitItems"|"drawFrame"|"syncTime"|"recordPerformance"|"updateDimensions"|"updateStream"|"flyTo"|"loadSceneViewState"|"updateCrossSectioning"|"stencilBuffer"|"resetView"|undefined} result
|
|
16159
16417
|
* @memberof vertexvis.protobuf.stream.StreamResponse
|
|
16160
16418
|
* @instance
|
|
16161
16419
|
*/
|
|
16162
16420
|
Object.defineProperty(StreamResponse.prototype, "result", {
|
|
16163
|
-
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer"]),
|
|
16421
|
+
get: $util.oneOfGetter($oneOfFields = ["startStream", "updateCamera", "beginInteraction", "endInteraction", "reconnect", "hitItems", "drawFrame", "syncTime", "recordPerformance", "updateDimensions", "updateStream", "flyTo", "loadSceneViewState", "updateCrossSectioning", "stencilBuffer", "resetView"]),
|
|
16164
16422
|
set: $util.oneOfSetter($oneOfFields)
|
|
16165
16423
|
});
|
|
16166
16424
|
|
|
@@ -16222,6 +16480,8 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16222
16480
|
$root.vertexvis.protobuf.stream.UpdateCrossSectioningResult.encode(message.updateCrossSectioning, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
16223
16481
|
if (message.stencilBuffer != null && Object.hasOwnProperty.call(message, "stencilBuffer"))
|
|
16224
16482
|
$root.vertexvis.protobuf.stream.GetStencilBufferResult.encode(message.stencilBuffer, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
16483
|
+
if (message.resetView != null && Object.hasOwnProperty.call(message, "resetView"))
|
|
16484
|
+
$root.vertexvis.protobuf.stream.ResetViewResult.encode(message.resetView, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
16225
16485
|
return writer;
|
|
16226
16486
|
};
|
|
16227
16487
|
|
|
@@ -16307,6 +16567,9 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16307
16567
|
case 17:
|
|
16308
16568
|
message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.decode(reader, reader.uint32());
|
|
16309
16569
|
break;
|
|
16570
|
+
case 18:
|
|
16571
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.decode(reader, reader.uint32());
|
|
16572
|
+
break;
|
|
16310
16573
|
default:
|
|
16311
16574
|
reader.skipType(tag & 7);
|
|
16312
16575
|
break;
|
|
@@ -16501,6 +16764,16 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16501
16764
|
return "stencilBuffer." + error;
|
|
16502
16765
|
}
|
|
16503
16766
|
}
|
|
16767
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
16768
|
+
if (properties.result === 1)
|
|
16769
|
+
return "result: multiple values";
|
|
16770
|
+
properties.result = 1;
|
|
16771
|
+
{
|
|
16772
|
+
let error = $root.vertexvis.protobuf.stream.ResetViewResult.verify(message.resetView);
|
|
16773
|
+
if (error)
|
|
16774
|
+
return "resetView." + error;
|
|
16775
|
+
}
|
|
16776
|
+
}
|
|
16504
16777
|
return null;
|
|
16505
16778
|
};
|
|
16506
16779
|
|
|
@@ -16601,6 +16874,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16601
16874
|
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.stencilBuffer: object expected");
|
|
16602
16875
|
message.stencilBuffer = $root.vertexvis.protobuf.stream.GetStencilBufferResult.fromObject(object.stencilBuffer);
|
|
16603
16876
|
}
|
|
16877
|
+
if (object.resetView != null) {
|
|
16878
|
+
if (typeof object.resetView !== "object")
|
|
16879
|
+
throw TypeError(".vertexvis.protobuf.stream.StreamResponse.resetView: object expected");
|
|
16880
|
+
message.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.fromObject(object.resetView);
|
|
16881
|
+
}
|
|
16604
16882
|
return message;
|
|
16605
16883
|
};
|
|
16606
16884
|
|
|
@@ -16700,6 +16978,11 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
16700
16978
|
if (options.oneofs)
|
|
16701
16979
|
object.result = "stencilBuffer";
|
|
16702
16980
|
}
|
|
16981
|
+
if (message.resetView != null && message.hasOwnProperty("resetView")) {
|
|
16982
|
+
object.resetView = $root.vertexvis.protobuf.stream.ResetViewResult.toObject(message.resetView, options);
|
|
16983
|
+
if (options.oneofs)
|
|
16984
|
+
object.result = "resetView";
|
|
16985
|
+
}
|
|
16703
16986
|
return object;
|
|
16704
16987
|
};
|
|
16705
16988
|
|
|
@@ -19168,6 +19451,166 @@ const vertexvis = $root.vertexvis = (() => {
|
|
|
19168
19451
|
return LoadSceneViewStateResult;
|
|
19169
19452
|
})();
|
|
19170
19453
|
|
|
19454
|
+
stream.ResetViewResult = (function() {
|
|
19455
|
+
|
|
19456
|
+
/**
|
|
19457
|
+
* Properties of a ResetViewResult.
|
|
19458
|
+
* @memberof vertexvis.protobuf.stream
|
|
19459
|
+
* @interface IResetViewResult
|
|
19460
|
+
*/
|
|
19461
|
+
|
|
19462
|
+
/**
|
|
19463
|
+
* Constructs a new ResetViewResult.
|
|
19464
|
+
* @memberof vertexvis.protobuf.stream
|
|
19465
|
+
* @classdesc Represents a ResetViewResult.
|
|
19466
|
+
* @implements IResetViewResult
|
|
19467
|
+
* @constructor
|
|
19468
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult=} [properties] Properties to set
|
|
19469
|
+
*/
|
|
19470
|
+
function ResetViewResult(properties) {
|
|
19471
|
+
if (properties)
|
|
19472
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19473
|
+
if (properties[keys[i]] != null)
|
|
19474
|
+
this[keys[i]] = properties[keys[i]];
|
|
19475
|
+
}
|
|
19476
|
+
|
|
19477
|
+
/**
|
|
19478
|
+
* Creates a new ResetViewResult instance using the specified properties.
|
|
19479
|
+
* @function create
|
|
19480
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19481
|
+
* @static
|
|
19482
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult=} [properties] Properties to set
|
|
19483
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult instance
|
|
19484
|
+
*/
|
|
19485
|
+
ResetViewResult.create = function create(properties) {
|
|
19486
|
+
return new ResetViewResult(properties);
|
|
19487
|
+
};
|
|
19488
|
+
|
|
19489
|
+
/**
|
|
19490
|
+
* Encodes the specified ResetViewResult message. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewResult.verify|verify} messages.
|
|
19491
|
+
* @function encode
|
|
19492
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19493
|
+
* @static
|
|
19494
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult} message ResetViewResult message or plain object to encode
|
|
19495
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19496
|
+
* @returns {$protobuf.Writer} Writer
|
|
19497
|
+
*/
|
|
19498
|
+
ResetViewResult.encode = function encode(message, writer) {
|
|
19499
|
+
if (!writer)
|
|
19500
|
+
writer = $Writer.create();
|
|
19501
|
+
return writer;
|
|
19502
|
+
};
|
|
19503
|
+
|
|
19504
|
+
/**
|
|
19505
|
+
* Encodes the specified ResetViewResult message, length delimited. Does not implicitly {@link vertexvis.protobuf.stream.ResetViewResult.verify|verify} messages.
|
|
19506
|
+
* @function encodeDelimited
|
|
19507
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19508
|
+
* @static
|
|
19509
|
+
* @param {vertexvis.protobuf.stream.IResetViewResult} message ResetViewResult message or plain object to encode
|
|
19510
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19511
|
+
* @returns {$protobuf.Writer} Writer
|
|
19512
|
+
*/
|
|
19513
|
+
ResetViewResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19514
|
+
return this.encode(message, writer).ldelim();
|
|
19515
|
+
};
|
|
19516
|
+
|
|
19517
|
+
/**
|
|
19518
|
+
* Decodes a ResetViewResult message from the specified reader or buffer.
|
|
19519
|
+
* @function decode
|
|
19520
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19521
|
+
* @static
|
|
19522
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19523
|
+
* @param {number} [length] Message length if known beforehand
|
|
19524
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
19525
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19526
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19527
|
+
*/
|
|
19528
|
+
ResetViewResult.decode = function decode(reader, length) {
|
|
19529
|
+
if (!(reader instanceof $Reader))
|
|
19530
|
+
reader = $Reader.create(reader);
|
|
19531
|
+
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.vertexvis.protobuf.stream.ResetViewResult();
|
|
19532
|
+
while (reader.pos < end) {
|
|
19533
|
+
let tag = reader.uint32();
|
|
19534
|
+
switch (tag >>> 3) {
|
|
19535
|
+
default:
|
|
19536
|
+
reader.skipType(tag & 7);
|
|
19537
|
+
break;
|
|
19538
|
+
}
|
|
19539
|
+
}
|
|
19540
|
+
return message;
|
|
19541
|
+
};
|
|
19542
|
+
|
|
19543
|
+
/**
|
|
19544
|
+
* Decodes a ResetViewResult message from the specified reader or buffer, length delimited.
|
|
19545
|
+
* @function decodeDelimited
|
|
19546
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19547
|
+
* @static
|
|
19548
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19549
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
19550
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19551
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19552
|
+
*/
|
|
19553
|
+
ResetViewResult.decodeDelimited = function decodeDelimited(reader) {
|
|
19554
|
+
if (!(reader instanceof $Reader))
|
|
19555
|
+
reader = new $Reader(reader);
|
|
19556
|
+
return this.decode(reader, reader.uint32());
|
|
19557
|
+
};
|
|
19558
|
+
|
|
19559
|
+
/**
|
|
19560
|
+
* Verifies a ResetViewResult message.
|
|
19561
|
+
* @function verify
|
|
19562
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19563
|
+
* @static
|
|
19564
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19565
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19566
|
+
*/
|
|
19567
|
+
ResetViewResult.verify = function verify(message) {
|
|
19568
|
+
if (typeof message !== "object" || message === null)
|
|
19569
|
+
return "object expected";
|
|
19570
|
+
return null;
|
|
19571
|
+
};
|
|
19572
|
+
|
|
19573
|
+
/**
|
|
19574
|
+
* Creates a ResetViewResult message from a plain object. Also converts values to their respective internal types.
|
|
19575
|
+
* @function fromObject
|
|
19576
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19577
|
+
* @static
|
|
19578
|
+
* @param {Object.<string,*>} object Plain object
|
|
19579
|
+
* @returns {vertexvis.protobuf.stream.ResetViewResult} ResetViewResult
|
|
19580
|
+
*/
|
|
19581
|
+
ResetViewResult.fromObject = function fromObject(object) {
|
|
19582
|
+
if (object instanceof $root.vertexvis.protobuf.stream.ResetViewResult)
|
|
19583
|
+
return object;
|
|
19584
|
+
return new $root.vertexvis.protobuf.stream.ResetViewResult();
|
|
19585
|
+
};
|
|
19586
|
+
|
|
19587
|
+
/**
|
|
19588
|
+
* Creates a plain object from a ResetViewResult message. Also converts values to other types if specified.
|
|
19589
|
+
* @function toObject
|
|
19590
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19591
|
+
* @static
|
|
19592
|
+
* @param {vertexvis.protobuf.stream.ResetViewResult} message ResetViewResult
|
|
19593
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19594
|
+
* @returns {Object.<string,*>} Plain object
|
|
19595
|
+
*/
|
|
19596
|
+
ResetViewResult.toObject = function toObject() {
|
|
19597
|
+
return {};
|
|
19598
|
+
};
|
|
19599
|
+
|
|
19600
|
+
/**
|
|
19601
|
+
* Converts this ResetViewResult to JSON.
|
|
19602
|
+
* @function toJSON
|
|
19603
|
+
* @memberof vertexvis.protobuf.stream.ResetViewResult
|
|
19604
|
+
* @instance
|
|
19605
|
+
* @returns {Object.<string,*>} JSON object
|
|
19606
|
+
*/
|
|
19607
|
+
ResetViewResult.prototype.toJSON = function toJSON() {
|
|
19608
|
+
return this.constructor.toObject(this, minimal.util.toJSONOptions);
|
|
19609
|
+
};
|
|
19610
|
+
|
|
19611
|
+
return ResetViewResult;
|
|
19612
|
+
})();
|
|
19613
|
+
|
|
19171
19614
|
stream.GetStencilBufferResult = (function() {
|
|
19172
19615
|
|
|
19173
19616
|
/**
|
|
@@ -33108,6 +33551,22 @@ var StreamApi = /** @class */ (function () {
|
|
|
33108
33551
|
if (withResponse === void 0) { withResponse = true; }
|
|
33109
33552
|
return this.sendRequest({ createSceneAlteration: payload }, withResponse);
|
|
33110
33553
|
};
|
|
33554
|
+
/**
|
|
33555
|
+
* Sends a request to reset all overrides for a given scene and optionally to
|
|
33556
|
+
* reset the camera to that of the base scene.
|
|
33557
|
+
*
|
|
33558
|
+
* Use `withResponse` to indicate if the server should reply with a response.
|
|
33559
|
+
* If `false`, the returned promise will complete immediately. Otherwise,
|
|
33560
|
+
* it'll complete when a response is received.
|
|
33561
|
+
*
|
|
33562
|
+
* @param payload The payload of the request.
|
|
33563
|
+
* @param withResponse Indicates if the server should reply with a response.
|
|
33564
|
+
* Defaults to `true`.
|
|
33565
|
+
*/
|
|
33566
|
+
StreamApi.prototype.resetSceneView = function (payload, withResponse) {
|
|
33567
|
+
if (withResponse === void 0) { withResponse = true; }
|
|
33568
|
+
return this.sendRequest({ resetView: payload }, withResponse);
|
|
33569
|
+
};
|
|
33111
33570
|
/**
|
|
33112
33571
|
* Sends a request to tell the rendering pipeline that an interaction has
|
|
33113
33572
|
* ended.
|